Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Your answer same as the question and it does not work! Commented Jan 24, 2021 at 2:53
  • 3
    Down voted, but this code doesn't compile and work when you actually try and include the header file in another source file to start using this templated class. You will get unresolved symbol linker errors. Commented May 16, 2022 at 5:57
  • Implicit instantiations, like those in TemporaryFunction, do not allow another translation unit to rely on those instantiations to exist (typically because the implementation inlines the calls and does not emit symbols for the function template specializations). Commented Mar 14, 2024 at 6:17