Relative Content

Tag Archive for c++c++20linker-errorstemplate-specializationstdformat

Template-template parameters cause linking errors when specializing `std::formatter`

Note: This is a follow-up to my previous question, where I figured out how to properly separate the interface and implementation of a std::formatter specialization for a non-templated custom type (TL;DR: You can’t use auto for the return type of a declaration, because then the compiler will be unable to deduce the return type. Explicit type the return type out, and it will work).