Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix circular dependency in fixed_function.h (#350)
* Include fixed_function at top of test file This will trigger compilation errors under the current setup due to the recursive dependency; moving it here should allow us to detect if this issue rears its head again in the future. * Limit inclusion of functional.h by utility.h A circular dependency was forming when function_detail.h was included ahead of function.h, which could occur if a user included fixed_function.h prior to functional.h. As utility.h only requires the type traits for eastl::reference_wrapper, this limits the inclusion to only attempting to pull them in instead of the entirety of functional.h. This may break users who depend upon utility.h pulling in functional.h. * Reorder test includes per review comments Added a link to the issue to document the ordering as well, so it's a bit clearer for anyone 3 years down the line.
- Loading branch information