jamboree / bustache

C++20 implementation of {{ mustache }}
82 stars 10 forks source link

fix bustache::literals::operator""_fmt calls incorrect format ctor #35

Closed martinzink closed 11 months ago

martinzink commented 11 months ago

The operator"" _fmt originally called format(char const begin, char const end), but after a rewrite this function was deleted, in favour of std::string_view, but this operator was left with the char const begin, char const end arguments,

It currently calls the format(std::string_view source, bool copytext) due to implicit conversions (char const -> std::string_view, and char const -> bool) which is probably not what we want.