Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder LinkHeaders function to allow compiling on Clang #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simco50
Copy link

@simco50 simco50 commented Sep 11, 2024

Fixes this error in Clang

AMD_FidelityFX/include\ffx_api/ffx_api.hpp(63,5): error: call to function 'LinkHeaders' that is neither visible in the template definition nor found by argument-dependent lookup
   63 |     LinkHeaders(second, rest...);
      |     ^
AMD_FidelityFX/include\ffx_api/ffx_api.hpp(63,5): note: in instantiation of function template specialization 'ffx::LinkHeaders<ffxApiHeader, ffxApiHeader>' requested here
AMD_FidelityFX/include\ffx_api/ffx_api.hpp(84,19): note: in instantiation of function template specialization 'ffx::LinkHeaders<ffxApiHeader, ffxApiHeader, ffxApiHeader>' requested here
   84 |     auto header = LinkHeaders(desc.header...);
      |                   ^
AMD_FidelityFX/include\ffx_api/ffx_api.hpp(76,9): note: 'LinkHeaders' should be declared prior to the call site or in the global namespace
   76 | Header* LinkHeaders(Header& hdr)
      |   

Fixes "call to function 'LinkHeaders' that is neither visible in the template definition nor found by argument-dependent lookup"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant