Skip to content

Commit 9d7752e

Browse files
committed
fable: Move fable/json/with_std.hpp to fable/utility/memory.hpp
BREAKING CHANGE: This commit renames a public header file and requires that rename your #include statements: - #include <fable/json/with_std.hpp> + #include <fable/utility/memory.hpp>
1 parent 80759d0 commit 9d7752e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

fable/include/fable/fable.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
#include <fable/enum.hpp>
3232
#include <fable/error.hpp>
3333
#include <fable/json.hpp>
34-
#include <fable/json/with_std.hpp>
34+
#include <fable/utility/memory.hpp>
3535
#include <fable/schema.hpp>

fable/include/fable/json/with_std.hpp renamed to fable/include/fable/utility/memory.hpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Robert Bosch GmbH
2+
* Copyright 2023 Robert Bosch GmbH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,8 +16,7 @@
1616
* SPDX-License-Identifier: Apache-2.0
1717
*/
1818
/**
19-
* \file fable/json/with_std.hpp
20-
* \see fable/json.hpp
19+
* \file fable/utility/memory.hpp
2120
*
2221
* This file contains specializations of `nlohmann::adl_serializer` for std
2322
* types in order to provide serialization for third-party types.
@@ -27,7 +26,7 @@
2726

2827
#include <memory> // for unique_ptr<>, shared_ptr<>, weak_ptr<>
2928

30-
#include <nlohmann/json.hpp>
29+
#include <nlohmann/json.hpp> // for adl_serializer<>, json
3130

3231
/*
3332
* In order to provide serialization for third-party types, we need to either

fable/src/fable/schema/factory_advanced_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <string> // for string
2727
#include <utility> // for move
2828

29-
#include <fable/json/with_std.hpp> // for to_json
29+
#include <fable/utility/memory.hpp> // for adl_serializer<>
3030
#include <fable/schema.hpp> // for Confable, Schema
3131
#include <fable/schema/factory.hpp> // for Factory
3232
#include <fable/utility/gtest.hpp> // for assert_validate

0 commit comments

Comments
 (0)