Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Yastrebov committed Jun 18, 2024
1 parent adece8c commit 25814aa
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/functional/generic_configurable_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,6 @@

#include <fstream>


//// partial specialization (full specialization works too)
//NLOHMANN_JSON_NAMESPACE_BEGIN
//template <typename T>
//struct adl_serializer<std::optional<T>> {
// static void to_json(json& j, const std::optional<T>& opt) {
// if (opt == std::nullopt) {
// j = nullptr;
// } else {
// j = *opt; // this will call adl_serializer<T>::to_json which will
// // find the free function to_json in T's namespace!
// }
// }

// static void from_json(const json& j, std::optional<T>& opt) {
// if (j.is_null()) {
// opt = std::nullopt;
// } else {
// opt = j.template get<T>(); // same as above, but with
// // adl_serializer<T>::from_json
// }
// }
//};
//NLOHMANN_JSON_NAMESPACE_END


using json = nlohmann::json;
namespace fs = std::filesystem;
using namespace oklt::tests;
Expand Down

0 comments on commit 25814aa

Please sign in to comment.