Skip to content

Commit 25814aa

Browse files
author
Viktor Yastrebov
committed
remove commented code
1 parent adece8c commit 25814aa

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/functional/generic_configurable_tests.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,6 @@
1616

1717
#include <fstream>
1818

19-
20-
//// partial specialization (full specialization works too)
21-
//NLOHMANN_JSON_NAMESPACE_BEGIN
22-
//template <typename T>
23-
//struct adl_serializer<std::optional<T>> {
24-
// static void to_json(json& j, const std::optional<T>& opt) {
25-
// if (opt == std::nullopt) {
26-
// j = nullptr;
27-
// } else {
28-
// j = *opt; // this will call adl_serializer<T>::to_json which will
29-
// // find the free function to_json in T's namespace!
30-
// }
31-
// }
32-
33-
// static void from_json(const json& j, std::optional<T>& opt) {
34-
// if (j.is_null()) {
35-
// opt = std::nullopt;
36-
// } else {
37-
// opt = j.template get<T>(); // same as above, but with
38-
// // adl_serializer<T>::from_json
39-
// }
40-
// }
41-
//};
42-
//NLOHMANN_JSON_NAMESPACE_END
43-
44-
4519
using json = nlohmann::json;
4620
namespace fs = std::filesystem;
4721
using namespace oklt::tests;

0 commit comments

Comments
 (0)