Skip to content

Commit 0711449

Browse files
authored
CXX-3325 address -Wdeprecated-literal-operator warnings (#1441) (#1442)
1 parent 4b7aaa9 commit 0711449

File tree

2 files changed

+3
-3
lines changed
  • src/bsoncxx

2 files changed

+3
-3
lines changed

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/json.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ BSONCXX_ABI_EXPORT_CDECL(document::value) from_json(stdx::string_view json);
8282
///
8383
/// @throws bsoncxx::v_noabi::exception with error details if the conversion failed.
8484
///
85-
BSONCXX_ABI_EXPORT_CDECL(document::value) operator"" _bson(char const* json, size_t len);
85+
BSONCXX_ABI_EXPORT_CDECL(document::value) operator""_bson(char const* json, size_t len);
8686

8787
} // namespace v_noabi
8888
} // namespace bsoncxx
@@ -92,7 +92,7 @@ namespace bsoncxx {
9292
using ::bsoncxx::v_noabi::from_json;
9393
using ::bsoncxx::v_noabi::to_json;
9494

95-
using ::bsoncxx::v_noabi::operator"" _bson;
95+
using ::bsoncxx::v_noabi::operator""_bson;
9696

9797
} // namespace bsoncxx
9898

src/bsoncxx/lib/bsoncxx/v_noabi/bsoncxx/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ document::value from_json(stdx::string_view json) {
107107
return document::value{buf, length, bson_free_deleter};
108108
}
109109

110-
document::value operator"" _bson(char const* str, size_t len) {
110+
document::value operator""_bson(char const* str, size_t len) {
111111
return from_json(stdx::string_view{str, len});
112112
}
113113

0 commit comments

Comments
 (0)