#How to forward declare / explicitly instantiate function template correctly?

3 messages · Page 1 of 1 (latest)

wary fjord
#

how do I do this correctly? https://godbolt.org/z/ahM65hToM I want to forward declare a template and specify a few instantiations I will supply in a source file and then instantiate a template function in the source file for the types I need.

sacred crescentBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

wary fjord
#

!solved here: #cpp-help-text message