File tree Expand file tree Collapse file tree 7 files changed +15
-37
lines changed
src/bsoncxx/include/bsoncxx/v1 Expand file tree Collapse file tree 7 files changed +15
-37
lines changed Original file line number Diff line number Diff line change 2525
2626#include < cstdint>
2727#include < system_error>
28+ #include < type_traits>
2829
2930namespace bsoncxx {
3031namespace v1 {
@@ -128,12 +129,8 @@ class decimal128 {
128129} // namespace v1
129130} // namespace bsoncxx
130131
131- namespace std {
132-
133132template <>
134- struct is_error_code_enum <bsoncxx::v1::decimal128::errc> : true_type {};
135-
136- } // namespace std
133+ struct std ::is_error_code_enum<bsoncxx::v1::decimal128::errc> : true_type {};
137134
138135#include < bsoncxx/v1/detail/postlude.hpp>
139136
Original file line number Diff line number Diff line change 3030#include < cstring>
3131#include < iterator>
3232#include < system_error>
33+ #include < type_traits>
3334
3435namespace bsoncxx {
3536namespace v1 {
@@ -389,12 +390,8 @@ inline v1::element::view view::operator[](v1::stdx::string_view key) const {
389390} // namespace v1
390391} // namespace bsoncxx
391392
392- namespace std {
393-
394393template <>
395- struct is_error_code_enum <bsoncxx::v1::document::view::errc> : true_type {};
396-
397- } // namespace std
394+ struct std ::is_error_code_enum<bsoncxx::v1::document::view::errc> : true_type {};
398395
399396#include < bsoncxx/v1/detail/postlude.hpp>
400397
Original file line number Diff line number Diff line change 3131#include < array>
3232#include < cstddef>
3333#include < cstdint>
34- #include < memory>
3534#include < system_error>
3635#include < type_traits>
3736
@@ -265,12 +264,8 @@ class view {
265264} // namespace v1
266265} // namespace bsoncxx
267266
268- namespace std {
269-
270267template <>
271- struct is_error_code_enum <bsoncxx::v1::element::view::errc> : true_type {};
272-
273- } // namespace std
268+ struct std ::is_error_code_enum<bsoncxx::v1::element::view::errc> : true_type {};
274269
275270#include < bsoncxx/v1/detail/postlude.hpp>
276271
Original file line number Diff line number Diff line change @@ -112,15 +112,11 @@ BSONCXX_PRIVATE_WARNINGS_POP();
112112} // namespace v1
113113} // namespace bsoncxx
114114
115- namespace std {
116-
117115template <>
118- struct is_error_condition_enum <bsoncxx::v1::source_errc> : true_type {};
116+ struct std :: is_error_condition_enum<bsoncxx::v1::source_errc> : true_type {};
119117
120118template <>
121- struct is_error_condition_enum <bsoncxx::v1::type_errc> : true_type {};
122-
123- } // namespace std
119+ struct std ::is_error_condition_enum<bsoncxx::v1::type_errc> : true_type {};
124120
125121#include < bsoncxx/v1/detail/postlude.hpp>
126122
Original file line number Diff line number Diff line change 3030#include < ctime>
3131#include < string>
3232#include < system_error>
33+ #include < type_traits>
34+
3335namespace bsoncxx {
3436namespace v1 {
3537
@@ -203,12 +205,8 @@ BSONCXX_PRIVATE_INLINE_CXX17 constexpr std::size_t oid::k_oid_length;
203205} // namespace v1
204206} // namespace bsoncxx
205207
206- namespace std {
207-
208208template <>
209- struct is_error_code_enum <bsoncxx::v1::oid::errc> : true_type {};
210-
211- } // namespace std
209+ struct std ::is_error_code_enum<bsoncxx::v1::oid::errc> : true_type {};
212210
213211#include < bsoncxx/v1/detail/postlude.hpp>
214212
Original file line number Diff line number Diff line change 3737#include < cstdint>
3838#include < string>
3939#include < system_error>
40+ #include < type_traits>
4041#include < vector>
4142
4243namespace bsoncxx {
@@ -325,12 +326,8 @@ class value {
325326} // namespace v1
326327} // namespace bsoncxx
327328
328- namespace std {
329-
330329template <>
331- struct is_error_code_enum <bsoncxx::v1::types::value::errc> : true_type {};
332-
333- } // namespace std
330+ struct std ::is_error_code_enum<bsoncxx::v1::types::value::errc> : true_type {};
334331
335332#include < bsoncxx/v1/detail/postlude.hpp>
336333
Original file line number Diff line number Diff line change 3333#include < chrono>
3434#include < cstdint>
3535#include < cstring>
36+ #include < system_error>
37+ #include < type_traits>
3638
3739namespace bsoncxx {
3840namespace v1 {
@@ -1216,12 +1218,8 @@ class view {
12161218} // namespace v1
12171219} // namespace bsoncxx
12181220
1219- namespace std {
1220-
12211221template <>
1222- struct is_error_code_enum <bsoncxx::v1::types::view::errc> : true_type {};
1223-
1224- } // namespace std
1222+ struct std ::is_error_code_enum<bsoncxx::v1::types::view::errc> : true_type {};
12251223
12261224#include < bsoncxx/v1/detail/postlude.hpp>
12271225
You can’t perform that action at this time.
0 commit comments