Skip to content

Commit 9fe287a

Browse files
authored
Merge pull request #1745 from evoskuil/master
Avoiding name conflicts.
2 parents 5eb0464 + 147cc4c commit 9fe287a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

include/bitcoin/system/boost.hpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,18 @@
4545

4646
// Declares ADL free functions for use with boost-json.
4747
#define DECLARE_JSON_TAG_INVOKE(type) \
48-
BC_API type tag_invoke(to_tag<type>, const json_value& value) THROWS; \
49-
BC_API void tag_invoke(from_tag, json_value& value, \
48+
BC_API type tag_invoke(to_tag<type>, const boost::json::value& value) THROWS; \
49+
BC_API void tag_invoke(from_tag, boost::json::value& value, \
5050
const type& instance) THROWS
5151

5252
// Define ADL free functions for use with boost-json.
5353
#define DEFINE_JSON_TO_TAG(type) \
54-
type tag_invoke(to_tag<type>, const json_value& value) THROWS
54+
type tag_invoke(to_tag<type>, const boost::json::value& value) THROWS
5555
#define DEFINE_JSON_FROM_TAG(type) \
5656
BC_PUSH_WARNING(SMART_PTR_NOT_NEEDED) \
5757
BC_PUSH_WARNING(NO_VALUE_OR_CONST_REF_SHARED_PTR) \
58-
void tag_invoke(from_tag, json_value& value, const type& instance) THROWS \
58+
void tag_invoke(from_tag, boost::json::value& value, \
59+
const type& instance) THROWS \
5960
BC_POP_WARNING() \
6061
BC_POP_WARNING()
6162

@@ -83,8 +84,6 @@ inline auto value_from(Args&&... args) THROWS
8384
template <typename Type>
8485
using to_tag = boost::json::value_to_tag<Type>;
8586
typedef boost::json::value_from_tag from_tag;
86-
typedef boost::json::object json_object;
87-
typedef boost::json::value json_value;
8887

8988
/// program_options aliases
9089
typedef boost::program_options::variables_map variables_map;

0 commit comments

Comments
 (0)