@@ -42,7 +42,7 @@ namespace detail {
4242#endif
4343
4444template <typename T, typename ... Tail>
45- auto first (const T& value, const Tail&...) -> const T& {
45+ FMT_CONSTEXPR auto first (const T& value, const Tail&...) -> const T& {
4646 return value;
4747}
4848
@@ -436,8 +436,8 @@ FMT_BEGIN_EXPORT
436436template <typename CompiledFormat, typename ... Args,
437437 typename Char = typename CompiledFormat::char_type,
438438 FMT_ENABLE_IF (detail::is_compiled_format<CompiledFormat>::value)>
439- FMT_INLINE std::basic_string<Char> format(const CompiledFormat& cf,
440- const Args&... args) {
439+ FMT_INLINE FMT_CONSTEXPR_STRING std::basic_string<Char> format(
440+ const CompiledFormat& cf, const Args&... args) {
441441 auto s = std::basic_string<Char>();
442442 cf.format (std::back_inserter (s), args...);
443443 return s;
@@ -452,8 +452,8 @@ constexpr FMT_INLINE OutputIt format_to(OutputIt out, const CompiledFormat& cf,
452452
453453template <typename S, typename ... Args,
454454 FMT_ENABLE_IF (is_compiled_string<S>::value)>
455- FMT_INLINE std::basic_string<typename S::char_type> format(const S&,
456- Args&&... args) {
455+ FMT_INLINE FMT_CONSTEXPR_STRING std::basic_string<typename S::char_type> format(
456+ const S&, Args&&... args) {
457457 if constexpr (std::is_same<typename S::char_type, char >::value) {
458458 constexpr auto str = basic_string_view<typename S::char_type>(S ());
459459 if constexpr (str.size () == 2 && str[0 ] == ' {' && str[1 ] == ' }' ) {
0 commit comments