@@ -49,7 +49,7 @@ struct b_double {
49
49
// /
50
50
// / The type represented by this BSON type value.
51
51
// /
52
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_double;
52
+ static constexpr id type_id = id::k_double;
53
53
54
54
// /
55
55
// / The represented value.
@@ -100,7 +100,7 @@ struct b_string {
100
100
// /
101
101
// / The type represented by this BSON type value.
102
102
// /
103
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_string;
103
+ static constexpr id type_id = id::k_string;
104
104
105
105
// /
106
106
// / The represented value.
@@ -148,7 +148,7 @@ struct b_document {
148
148
// /
149
149
// / The type represented by this BSON type value.
150
150
// /
151
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_document;
151
+ static constexpr id type_id = id::k_document;
152
152
153
153
// /
154
154
// / The represented value.
@@ -200,7 +200,7 @@ struct b_array {
200
200
// /
201
201
// / The type represented by this BSON type value.
202
202
// /
203
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_array;
203
+ static constexpr id type_id = id::k_array;
204
204
205
205
// /
206
206
// / The represented value.
@@ -248,7 +248,7 @@ struct b_binary {
248
248
// /
249
249
// / The type represented by this BSON type value.
250
250
// /
251
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_binary;
251
+ static constexpr id type_id = id::k_binary;
252
252
253
253
// /
254
254
// / The represented value's binary subtype component.
@@ -317,7 +317,7 @@ struct b_undefined {
317
317
// /
318
318
// / The type represented by this BSON type value.
319
319
// /
320
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_undefined;
320
+ static constexpr id type_id = id::k_undefined;
321
321
322
322
// /
323
323
// / Return true.
@@ -343,7 +343,7 @@ struct b_oid {
343
343
// /
344
344
// / The type represented by this BSON type value.
345
345
// /
346
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_oid;
346
+ static constexpr id type_id = id::k_oid;
347
347
348
348
// /
349
349
// / The represented value.
@@ -391,7 +391,7 @@ struct b_bool {
391
391
// /
392
392
// / The type represented by this BSON type value.
393
393
// /
394
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_bool;
394
+ static constexpr id type_id = id::k_bool;
395
395
396
396
// /
397
397
// / The represented value.
@@ -439,7 +439,7 @@ struct b_date {
439
439
// /
440
440
// / The type represented by this BSON type value.
441
441
// /
442
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_date;
442
+ static constexpr id type_id = id::k_date;
443
443
444
444
// /
445
445
// / The represented value (milliseconds relative to the Unix epoch).
@@ -498,7 +498,7 @@ struct b_null {
498
498
// /
499
499
// / The type represented by this BSON type value.
500
500
// /
501
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_null;
501
+ static constexpr id type_id = id::k_null;
502
502
503
503
// /
504
504
// / Return true.
@@ -524,7 +524,7 @@ struct b_regex {
524
524
// /
525
525
// / The type represented by this BSON type value.
526
526
// /
527
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_regex;
527
+ static constexpr id type_id = id::k_regex;
528
528
529
529
// /
530
530
// / The represented value's "pattern" component.
@@ -577,7 +577,7 @@ struct b_dbpointer {
577
577
// /
578
578
// / The type represented by this BSON type value.
579
579
// /
580
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_dbpointer;
580
+ static constexpr id type_id = id::k_dbpointer;
581
581
582
582
// /
583
583
// / The represented value's "$ref" (namespace) component.
@@ -623,7 +623,7 @@ struct b_code {
623
623
// /
624
624
// / The type represented by this BSON type value.
625
625
// /
626
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_code;
626
+ static constexpr id type_id = id::k_code;
627
627
628
628
// /
629
629
// / The represented value.
@@ -673,7 +673,7 @@ struct b_symbol {
673
673
// /
674
674
// / The type represented by this BSON type value.
675
675
// /
676
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_symbol;
676
+ static constexpr id type_id = id::k_symbol;
677
677
678
678
// /
679
679
// / The represented value.
@@ -723,7 +723,7 @@ struct b_codewscope {
723
723
// /
724
724
// / The type represented by this BSON type value.
725
725
// /
726
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_codewscope;
726
+ static constexpr id type_id = id::k_codewscope;
727
727
728
728
// /
729
729
// / The represented value's "$code" component.
@@ -769,7 +769,7 @@ struct b_int32 {
769
769
// /
770
770
// / The type represented by this BSON type value.
771
771
// /
772
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_int32;
772
+ static constexpr id type_id = id::k_int32;
773
773
774
774
// /
775
775
// / The represented value.
@@ -817,7 +817,7 @@ struct b_timestamp {
817
817
// /
818
818
// / The type represented by this BSON type value.
819
819
// /
820
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_timestamp;
820
+ static constexpr id type_id = id::k_timestamp;
821
821
822
822
// /
823
823
// / The represented value's "i" component.
@@ -863,7 +863,7 @@ struct b_int64 {
863
863
// /
864
864
// / The type represented by this BSON type value.
865
865
// /
866
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_int64;
866
+ static constexpr id type_id = id::k_int64;
867
867
868
868
// /
869
869
// / The represented value.
@@ -911,7 +911,7 @@ struct b_decimal128 {
911
911
// /
912
912
// / The type represented by this BSON type value.
913
913
// /
914
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_decimal128;
914
+ static constexpr id type_id = id::k_decimal128;
915
915
916
916
// /
917
917
// / The represented value.
@@ -959,7 +959,7 @@ struct b_maxkey {
959
959
// /
960
960
// / The type represented by this BSON type value.
961
961
// /
962
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_maxkey;
962
+ static constexpr id type_id = id::k_maxkey;
963
963
964
964
// /
965
965
// / Return true.
@@ -985,7 +985,7 @@ struct b_minkey {
985
985
// /
986
986
// / The type represented by this BSON type value.
987
987
// /
988
- static constexpr BSONCXX_ABI_EXPORT id type_id = id::k_minkey;
988
+ static constexpr id type_id = id::k_minkey;
989
989
990
990
// /
991
991
// / Return true.
@@ -1004,6 +1004,12 @@ struct b_minkey {
1004
1004
1005
1005
// BSONCXX_V1_TYPES_XMACRO: update above.
1006
1006
1007
+ #pragma push_macro("X")
1008
+ #undef X
1009
+ #define X (_name, _val ) BSONCXX_PRIVATE_INLINE_CXX17 constexpr id b_##_name::type_id;
1010
+ BSONCXX_V1_TYPES_XMACRO (X)
1011
+ #pragma pop_macro("X")
1012
+
1007
1013
// /
1008
1014
// / A non-owning, read-only union of BSON type values.
1009
1015
// /
0 commit comments