Код: Выделить всё
class MyClass{
public:
std::string _cachedString;
std::string_view get_string(){
_cachedString = "abc";
return _cachedString;
}
};
template
class fmt::formatter{
public:
template
constexpr auto parse(ParseContext& ctx){return ctx.begin();}
template
constexpr auto format( MyClass& t, FormatContext& ctx){
return format_to(ctx.out(), "({})", t.get_string());
}
};
Код: Выделить всё
undefined reference to `fmt::v8::detail::value::value(fmt::v8::detail::unformattable_const)'
Подробнее здесь: https://stackoverflow.com/questions/782 ... t-argument