File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 2525#endif
2626
2727namespace bsoncxx {
28+ BSONCXX_INLINE_NAMESPACE_BEGIN
2829namespace stdx {
2930
3031using ::core::make_unique;
3132
3233} // namespace stdx
34+ BSONCXX_INLINE_NAMESPACE_END
3335} // namespace bsoncxx
3436
3537#elif defined(BSONCXX_POLY_USE_BOOST)
3638
3739#include < boost/smart_ptr/make_unique.hpp>
3840
3941namespace bsoncxx {
42+ BSONCXX_INLINE_NAMESPACE_BEGIN
4043namespace stdx {
4144
4245using ::boost::make_unique;
4346
4447} // namespace stdx
48+ BSONCXX_INLINE_NAMESPACE_END
4549} // namespace bsoncxx
4650
4751#elif __cplusplus >= 201402L
4852
4953#include < memory>
5054
5155namespace bsoncxx {
56+ BSONCXX_INLINE_NAMESPACE_BEGIN
5257namespace stdx {
5358
5459using ::std::make_unique;
5560
5661} // namespace stdx
62+ BSONCXX_INLINE_NAMESPACE_END
5763} // namespace bsoncxx
5864
5965#else
Original file line number Diff line number Diff line change 2525#endif
2626
2727namespace bsoncxx {
28+ BSONCXX_INLINE_NAMESPACE_BEGIN
2829namespace stdx {
2930
3031using ::core::optional;
3132using ::core::nullopt ;
3233using ::core::make_optional;
3334
3435} // namespace stdx
36+ BSONCXX_INLINE_NAMESPACE_END
3537} // namespace bsoncxx
3638
3739#elif defined(BSONCXX_POLY_USE_BOOST)
@@ -40,6 +42,7 @@ using ::core::make_optional;
4042#include < boost/optional/optional.hpp>
4143
4244namespace bsoncxx {
45+ BSONCXX_INLINE_NAMESPACE_BEGIN
4346namespace stdx {
4447
4548using ::boost::optional;
@@ -50,20 +53,23 @@ const nullopt_t nullopt{::boost::none};
5053using ::boost::make_optional;
5154
5255} // namespace stdx
56+ BSONCXX_INLINE_NAMESPACE_END
5357} // namespace bsoncxx
5458
5559#elif defined(BSONCXX_POLY_USE_STD_EXPERIMENTAL)
5660
5761#include < experimental/optional>
5862
5963namespace bsoncxx {
64+ BSONCXX_INLINE_NAMESPACE_BEGIN
6065namespace stdx {
6166
6267using ::std::experimental::optional;
6368using ::std::experimental::nullopt ;
6469using ::std::experimental::make_optional;
6570
6671} // namespace stdx
72+ BSONCXX_INLINE_NAMESPACE_END
6773} // namespace bsoncxx
6874
6975#else
Original file line number Diff line number Diff line change 2525#endif
2626
2727namespace bsoncxx {
28+ BSONCXX_INLINE_NAMESPACE_BEGIN
2829namespace stdx {
2930
3031using ::core::string_view;
3132
3233} // namespace stdx
34+ BSONCXX_INLINE_NAMESPACE_END
3335} // namespace bsoncxx
3436
3537#elif defined(BSONCXX_POLY_USE_BOOST)
3638
3739#include < boost/utility/string_ref.hpp>
3840
3941namespace bsoncxx {
42+ BSONCXX_INLINE_NAMESPACE_BEGIN
4043namespace stdx {
4144
4245using string_view = ::boost::string_ref;
4346
4447} // namespace stdx
48+ BSONCXX_INLINE_NAMESPACE_END
4549} // namespace bsoncxx
4650
4751#elif defined(BSONCXX_POLY_USE_STD_EXPERIMENTAL)
4852
4953#include < experimental/string_view>
5054
5155namespace bsoncxx {
56+ BSONCXX_INLINE_NAMESPACE_BEGIN
5257namespace stdx {
5358
5459using ::std::experimental::string_view;
5560
5661} // namespace stdx
62+ BSONCXX_INLINE_NAMESPACE_END
5763} // namespace bsoncxx
5864
5965#else
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace stdx {
2323// We adopt all the bsoncxx polyfills
2424using namespace ::bsoncxx::stdx;
2525
26- } // namespace stdx;
26+ } // namespace stdx
2727MONGOCXX_INLINE_NAMESPACE_END
2828} // namespace mongocxx
2929
You can’t perform that action at this time.
0 commit comments