File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
bsoncxx/lib/bsoncxx/v_noabi/bsoncxx
mongocxx/lib/mongocxx/v_noabi/mongocxx Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ #include < bsoncxx/v1/detail/macros.hpp>
16
+
15
17
#include < cstring>
16
18
17
19
#include < bsoncxx/builder/core.hpp>
@@ -251,7 +253,11 @@ class core::impl {
251
253
};
252
254
253
255
core::core (bool is_array) {
256
+ BSONCXX_PRIVATE_WARNINGS_PUSH ();
257
+ BSONCXX_PRIVATE_WARNINGS_DISABLE (Clang (" -Wover-aligned" ));
258
+ BSONCXX_PRIVATE_WARNINGS_DISABLE (MSVC (4316 ));
254
259
_impl = make_unique<impl>(is_array);
260
+ BSONCXX_PRIVATE_WARNINGS_POP ();
255
261
}
256
262
257
263
core::core (core&&) noexcept = default ;
Original file line number Diff line number Diff line change 37
37
namespace bsoncxx {
38
38
namespace detail {
39
39
40
+ BSONCXX_PRIVATE_WARNINGS_PUSH ();
41
+ BSONCXX_PRIVATE_WARNINGS_DISABLE (Clang(" -Wover-aligned" ));
42
+ BSONCXX_PRIVATE_WARNINGS_DISABLE (MSVC(4316 ));
43
+
40
44
// Switch backend of make_unique by the type we are creating.
41
45
// It would be easier to 'if constexpr' on whether we are an array and whether to direct-init or
42
46
// value-init, but we don't have if-constexpr and we need it to guard against an uterance of a
@@ -94,6 +98,8 @@ struct make_unique_impl<T&> {};
94
98
template <typename T>
95
99
struct make_unique_impl <T&&> {};
96
100
101
+ BSONCXX_PRIVATE_WARNINGS_POP ();
102
+
97
103
} // namespace detail
98
104
} // namespace bsoncxx
99
105
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ #include < bsoncxx/v1/detail/macros.hpp>
16
+
15
17
#include < bsoncxx/private/make_unique.hh>
16
18
17
19
#include < mongocxx/exception/exception.hpp>
@@ -25,10 +27,14 @@ namespace mongocxx {
25
27
namespace v_noabi {
26
28
27
29
// Private constructors.
30
+ BSONCXX_PRIVATE_WARNINGS_PUSH ();
31
+ BSONCXX_PRIVATE_WARNINGS_DISABLE (Clang(" -Wover-aligned" ));
32
+ BSONCXX_PRIVATE_WARNINGS_DISABLE (MSVC(4316 ));
28
33
client_session::client_session (
29
34
mongocxx::v_noabi::client const * client,
30
35
mongocxx::v_noabi::options::client_session const & options)
31
36
: _impl(bsoncxx::make_unique<impl>(client, options)) {}
37
+ BSONCXX_PRIVATE_WARNINGS_POP ();
32
38
33
39
client_session::client_session (client_session&&) noexcept = default ;
34
40
You can’t perform that action at this time.
0 commit comments