Skip to content

Commit e99ef3f

Browse files
committed
Relax constexpr
1 parent 6bbba07 commit e99ef3f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

include/fmt/base.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,10 @@ struct is_back_insert_iterator<
495495

496496
// Extracts a reference to the container from *insert_iterator.
497497
template <typename OutputIt>
498-
inline FMT_CONSTEXPR20 auto get_container(OutputIt it) ->
498+
inline FMT_CONSTEXPR auto get_container(OutputIt it) ->
499499
typename OutputIt::container_type& {
500500
struct accessor : OutputIt {
501-
FMT_CONSTEXPR20 accessor(OutputIt base) : OutputIt(base) {}
501+
constexpr accessor(OutputIt base) : OutputIt(base) {}
502502
using OutputIt::container;
503503
};
504504
return *accessor(it).container;
@@ -2078,8 +2078,7 @@ template <typename T, typename InputIt, typename OutputIt,
20782078
FMT_ENABLE_IF(is_back_insert_iterator<OutputIt>::value&&
20792079
has_back_insert_iterator_container_append<
20802080
OutputIt, InputIt>::value)>
2081-
FMT_CONSTEXPR20 auto copy(InputIt begin, InputIt end, OutputIt out)
2082-
-> OutputIt {
2081+
FMT_CONSTEXPR auto copy(InputIt begin, InputIt end, OutputIt out) -> OutputIt {
20832082
get_container(out).append(begin, end);
20842083
return out;
20852084
}
@@ -2090,8 +2089,7 @@ template <typename T, typename InputIt, typename OutputIt,
20902089
OutputIt, InputIt>::value &&
20912090
has_back_insert_iterator_container_insert_at_end<
20922091
OutputIt, InputIt>::value)>
2093-
FMT_CONSTEXPR20 auto copy(InputIt begin, InputIt end, OutputIt out)
2094-
-> OutputIt {
2092+
FMT_CONSTEXPR auto copy(InputIt begin, InputIt end, OutputIt out) -> OutputIt {
20952093
auto& c = get_container(out);
20962094
c.insert(c.end(), begin, end);
20972095
return out;

0 commit comments

Comments
 (0)