@@ -83,7 +83,7 @@ struct BSONCXX_API b_double {
8383 BSONCXX_INLINE operator double () { return value; }
8484};
8585
86- inline BSONCXX_INLINE bool operator ==(const b_double& lhs, const b_double& rhs) {
86+ BSONCXX_INLINE bool operator ==(const b_double& lhs, const b_double& rhs) {
8787 return lhs.value == rhs.value ;
8888}
8989
@@ -103,7 +103,7 @@ struct BSONCXX_API b_utf8 {
103103 BSONCXX_INLINE operator stdx::string_view () { return value; }
104104};
105105
106- inline BSONCXX_INLINE bool operator ==(const b_utf8& lhs, const b_utf8& rhs) {
106+ BSONCXX_INLINE bool operator ==(const b_utf8& lhs, const b_utf8& rhs) {
107107 return lhs.value == rhs.value ;
108108}
109109
@@ -118,7 +118,7 @@ struct BSONCXX_API b_document {
118118 BSONCXX_INLINE operator document::view () { return value; }
119119};
120120
121- inline BSONCXX_INLINE bool operator ==(const b_document& lhs, const b_document& rhs) {
121+ BSONCXX_INLINE bool operator ==(const b_document& lhs, const b_document& rhs) {
122122 return lhs.value == rhs.value ;
123123}
124124
@@ -133,7 +133,7 @@ struct BSONCXX_API b_array {
133133 BSONCXX_INLINE operator array::view () { return value; }
134134};
135135
136- inline BSONCXX_INLINE bool operator ==(const b_array& lhs, const b_array& rhs) {
136+ BSONCXX_INLINE bool operator ==(const b_array& lhs, const b_array& rhs) {
137137 return lhs.value == rhs.value ;
138138}
139139
@@ -148,7 +148,7 @@ struct BSONCXX_API b_binary {
148148 const uint8_t * bytes;
149149};
150150
151- inline BSONCXX_INLINE bool operator ==(const b_binary& lhs, const b_binary& rhs) {
151+ BSONCXX_INLINE bool operator ==(const b_binary& lhs, const b_binary& rhs) {
152152 return lhs.sub_type == rhs.sub_type && lhs.size == rhs.size && (std::memcmp (lhs.bytes , rhs.bytes , lhs.size ) == 0 );
153153}
154154
@@ -163,7 +163,7 @@ struct BSONCXX_API b_undefined {
163163 static constexpr auto type_id = type::k_undefined;
164164};
165165
166- inline BSONCXX_INLINE bool operator ==(const b_undefined&, const b_undefined&) {
166+ BSONCXX_INLINE bool operator ==(const b_undefined&, const b_undefined&) {
167167 return true ;
168168}
169169
@@ -176,7 +176,7 @@ struct BSONCXX_API b_oid {
176176 oid value;
177177};
178178
179- inline BSONCXX_INLINE bool operator ==(const b_oid& lhs, const b_oid& rhs) {
179+ BSONCXX_INLINE bool operator ==(const b_oid& lhs, const b_oid& rhs) {
180180 return lhs.value == rhs.value ;
181181}
182182
@@ -191,7 +191,7 @@ struct BSONCXX_API b_bool {
191191 BSONCXX_INLINE operator bool () { return value; }
192192};
193193
194- inline BSONCXX_INLINE bool operator ==(const b_bool& lhs, const b_bool& rhs) {
194+ BSONCXX_INLINE bool operator ==(const b_bool& lhs, const b_bool& rhs) {
195195 return lhs.value == rhs.value ;
196196}
197197
@@ -206,7 +206,7 @@ struct BSONCXX_API b_date {
206206 BSONCXX_INLINE operator int64_t () { return value; }
207207};
208208
209- inline BSONCXX_INLINE bool operator ==(const b_date& lhs, const b_date& rhs) {
209+ BSONCXX_INLINE bool operator ==(const b_date& lhs, const b_date& rhs) {
210210 return lhs.value == rhs.value ;
211211}
212212
@@ -221,7 +221,7 @@ struct BSONCXX_API b_null {
221221 static constexpr auto type_id = type::k_null;
222222};
223223
224- inline BSONCXX_INLINE bool operator ==(const b_null&, const b_null&) {
224+ BSONCXX_INLINE bool operator ==(const b_null&, const b_null&) {
225225 return true ;
226226}
227227
@@ -244,7 +244,7 @@ struct BSONCXX_API b_regex {
244244 stdx::string_view options;
245245};
246246
247- inline BSONCXX_INLINE bool operator ==(const b_regex& lhs, const b_regex& rhs) {
247+ BSONCXX_INLINE bool operator ==(const b_regex& lhs, const b_regex& rhs) {
248248 return lhs.regex == rhs.regex && lhs.options == rhs.options ;
249249}
250250
@@ -261,7 +261,7 @@ struct BSONCXX_API b_dbpointer {
261261 oid value;
262262};
263263
264- inline BSONCXX_INLINE bool operator ==(const b_dbpointer& lhs, const b_dbpointer& rhs) {
264+ BSONCXX_INLINE bool operator ==(const b_dbpointer& lhs, const b_dbpointer& rhs) {
265265 return lhs.collection == rhs.collection && lhs.value == rhs.value ;
266266}
267267
@@ -285,7 +285,7 @@ struct BSONCXX_API b_code {
285285 BSONCXX_INLINE operator stdx::string_view () { return code; }
286286};
287287
288- inline BSONCXX_INLINE bool operator ==(const b_code& lhs, const b_code& rhs) {
288+ BSONCXX_INLINE bool operator ==(const b_code& lhs, const b_code& rhs) {
289289 return lhs.code == rhs.code ;
290290}
291291
@@ -309,7 +309,7 @@ struct BSONCXX_API b_symbol {
309309 BSONCXX_INLINE operator stdx::string_view () { return symbol; }
310310};
311311
312- inline BSONCXX_INLINE bool operator ==(const b_symbol& lhs, const b_symbol& rhs) {
312+ BSONCXX_INLINE bool operator ==(const b_symbol& lhs, const b_symbol& rhs) {
313313 return lhs.symbol == rhs.symbol ;
314314}
315315
@@ -332,7 +332,7 @@ struct BSONCXX_API b_codewscope {
332332 document::view scope;
333333};
334334
335- inline BSONCXX_INLINE bool operator ==(const b_codewscope& lhs, const b_codewscope& rhs) {
335+ BSONCXX_INLINE bool operator ==(const b_codewscope& lhs, const b_codewscope& rhs) {
336336 return lhs.code == rhs.code && lhs.scope == rhs.scope ;
337337}
338338
@@ -347,7 +347,7 @@ struct BSONCXX_API b_int32 {
347347 BSONCXX_INLINE operator int32_t () { return value; }
348348};
349349
350- inline BSONCXX_INLINE bool operator ==(const b_int32& lhs, const b_int32& rhs) {
350+ BSONCXX_INLINE bool operator ==(const b_int32& lhs, const b_int32& rhs) {
351351 return lhs.value == rhs.value ;
352352}
353353
@@ -365,7 +365,7 @@ struct BSONCXX_API b_timestamp {
365365 uint32_t timestamp;
366366};
367367
368- inline BSONCXX_INLINE bool operator ==(const b_timestamp& lhs, const b_timestamp& rhs) {
368+ BSONCXX_INLINE bool operator ==(const b_timestamp& lhs, const b_timestamp& rhs) {
369369 return lhs.increment == rhs.increment && lhs.timestamp == rhs.timestamp ;
370370}
371371
@@ -380,7 +380,7 @@ struct BSONCXX_API b_int64 {
380380 BSONCXX_INLINE operator int64_t () { return value; }
381381};
382382
383- inline BSONCXX_INLINE bool operator ==(const b_int64& lhs, const b_int64& rhs) {
383+ BSONCXX_INLINE bool operator ==(const b_int64& lhs, const b_int64& rhs) {
384384 return lhs.value == rhs.value ;
385385}
386386
@@ -395,7 +395,7 @@ struct BSONCXX_API b_minkey {
395395 static constexpr auto type_id = type::k_minkey;
396396};
397397
398- inline BSONCXX_INLINE bool operator ==(const b_minkey&, const b_minkey&) {
398+ BSONCXX_INLINE bool operator ==(const b_minkey&, const b_minkey&) {
399399 return true ;
400400}
401401
@@ -410,12 +410,12 @@ struct BSONCXX_API b_maxkey {
410410 static constexpr auto type_id = type::k_maxkey;
411411};
412412
413- inline BSONCXX_INLINE bool operator ==(const b_maxkey&, const b_maxkey&) {
413+ BSONCXX_INLINE bool operator ==(const b_maxkey&, const b_maxkey&) {
414414 return true ;
415415}
416416
417417#define BSONCXX_ENUM (name, val ) \
418- inline BSONCXX_INLINE bool operator !=(const b_##name& lhs, const b_##name& rhs) { \
418+ BSONCXX_INLINE bool operator !=(const b_##name& lhs, const b_##name& rhs) { \
419419 return !(lhs == rhs); \
420420}
421421#include < bsoncxx/enums/type.hpp>
0 commit comments