diff options
Diffstat (limited to 'src/mongo/bson/util/builder.h')
-rw-r--r-- | src/mongo/bson/util/builder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/bson/util/builder.h b/src/mongo/bson/util/builder.h index 5d7d2d5673c..a3ce39883d7 100644 --- a/src/mongo/bson/util/builder.h +++ b/src/mongo/bson/util/builder.h @@ -53,7 +53,6 @@ #include "mongo/stdx/type_traits.h" #include "mongo/util/allocator.h" #include "mongo/util/assert_util.h" -#include "mongo/util/concepts.h" #include "mongo/util/itoa.h" #include "mongo/util/shared_buffer.h" #include "mongo/util/shared_buffer_fragment.h" @@ -380,8 +379,8 @@ public: appendNumImpl(high); } - REQUIRES_FOR_NON_TEMPLATE(!std::is_same_v<int64_t, long long>) - void appendNum(int64_t j) { + template <int...> + requires(!std::is_same_v<int64_t, long long>) void appendNum(int64_t j) { appendNumImpl(j); } @@ -465,7 +464,8 @@ public: * Replaces the buffer backing this BufBuilder with the passed in SharedBuffer. * Only legal to call when this builder is empty and when the SharedBuffer isn't shared. */ - REQUIRES_FOR_NON_TEMPLATE(std::is_same_v<BufferAllocator, SharedBufferAllocator>) + template <int...> + requires std::is_same_v<BufferAllocator, SharedBufferAllocator> void useSharedBuffer(SharedBuffer buf) { invariant(len() == 0); // Can only do this while empty. invariant(reservedBytes() == 0); |