@@ -214,7 +214,7 @@ namespace msgpack23 {
214
214
}
215
215
216
216
template <CollectionLike T>
217
- requires MapLike<T> && (!EnumLike<T>)
217
+ requires MapLike<T> and (!EnumLike<T>)
218
218
void pack_type(T const &value) {
219
219
if (!pack_map_header (value.size ())) {
220
220
throw std::length_error (" Map is too long to be serialized." );
@@ -226,7 +226,7 @@ namespace msgpack23 {
226
226
}
227
227
228
228
template <CollectionLike T>
229
- requires (!MapLike<T>) && (!EnumLike<T>)
229
+ requires (!MapLike<T>) and (!EnumLike<T>)
230
230
void pack_type (T const &value) {
231
231
if (!pack_array_header (value.size ())) {
232
232
throw std::length_error (" Collection is too long to be serialized." );
@@ -287,7 +287,7 @@ namespace msgpack23 {
287
287
}
288
288
289
289
template <typename T>
290
- requires (!CollectionLike<T>) && (!MapLike<T>) && (!EnumLike<T>) && (!VariantLike<T>)
290
+ requires (!CollectionLike<T>) and (!MapLike<T>) and (!EnumLike<T>) and (!VariantLike<T>)
291
291
void pack_type (T const &value) {
292
292
value.pack (*this );
293
293
}
@@ -340,7 +340,7 @@ namespace msgpack23 {
340
340
}
341
341
342
342
void pack_type (std::int8_t const &value) {
343
- if (value > 31 || value < -32 ) {
343
+ if (value > 31 or value < -32 ) {
344
344
emplace_constant (FormatConstants::int8);
345
345
}
346
346
if constexpr (IsDryRun) {
@@ -608,7 +608,7 @@ namespace msgpack23 {
608
608
}
609
609
610
610
template <MapLike T>
611
- requires CollectionLike<T> && (!EnumLike<T>)
611
+ requires CollectionLike<T> and (!EnumLike<T>)
612
612
void unpack_type(T &value) {
613
613
using KeyType = typename T::key_type;
614
614
using ValueType = typename T::mapped_type;
@@ -623,7 +623,7 @@ namespace msgpack23 {
623
623
}
624
624
625
625
template <CollectionLike T>
626
- requires (!MapLike<T>) && EmplaceAvailable<T> && (!EnumLike<T>)
626
+ requires (!MapLike<T>) and EmplaceAvailable<T> and (!EnumLike<T>)
627
627
void unpack_type(T &value) {
628
628
using ValueType = typename T::value_type;
629
629
auto const array_size = unpack_array_header ();
@@ -635,7 +635,7 @@ namespace msgpack23 {
635
635
}
636
636
637
637
template <CollectionLike T>
638
- requires (!MapLike<T>) && (!EmplaceAvailable<T>) && (!EnumLike<T>)
638
+ requires (!MapLike<T>) and (!EmplaceAvailable<T>) and (!EnumLike<T>)
639
639
void unpack_type (T &value) {
640
640
using ValueType = typename T::value_type;
641
641
std::vector<ValueType> vec;
@@ -690,7 +690,7 @@ namespace msgpack23 {
690
690
}
691
691
auto const index = static_cast <std::int8_t >(read_integral<std::uint8_t >());
692
692
693
- if (index < 0 || index > static_cast <std::int8_t >(std::variant_size_v<T> - 1 )) {
693
+ if (index < 0 or index > static_cast <std::int8_t >(std::variant_size_v<T> - 1 )) {
694
694
throw std::out_of_range (" Invalid variant index" );
695
695
}
696
696
@@ -706,7 +706,7 @@ namespace msgpack23 {
706
706
}
707
707
708
708
template <typename T>
709
- requires (!CollectionLike<T>) && (!MapLike<T>) && (!EnumLike<T>) && (!VariantLike<T>)
709
+ requires (!CollectionLike<T>) and (!MapLike<T>) and (!EnumLike<T>) and (!VariantLike<T>)
710
710
void unpack_type (T &value) {
711
711
value.unpack (*this );
712
712
}
0 commit comments