@@ -25,13 +25,13 @@ constexpr const T static_const<T>::value;
2525// void operator()(const SdkType&, common::v1::ApiType*) const
2626// to provide API/ABI insulated proto conversion
2727template <typename SdkType>
28- struct to_proto ;
28+ struct to_proto_impl ;
2929
3030// This struct should be explicitly specialized with a
3131// SdkType operator()(const ProtoType*) const
3232// to provided API/ABI insulated construction from proto
3333template <typename ProtoType>
34- struct from_proto ;
34+ struct from_proto_impl ;
3535
3636// This is a helper type trait for deducing corresponding API types from a to_proto specialization.
3737// We use boost::callable_traits to generate a tuple of the arguments to the to_proto call operator,
@@ -41,23 +41,23 @@ using ProtoArgType = std::remove_pointer_t<
4141 boost::mp11::mp_back<boost::callable_traits::args_t <Callable, boost::mp11::mp_list>>>;
4242
4343// Implementation struct for the omni-to_proto callable defined below.
44- struct to_proto_impl {
44+ struct to_proto_fn {
4545 template <typename SdkType>
4646 auto operator ()(const SdkType& t) const {
47- using ProtoReturnType = ProtoArgType<to_proto <SdkType>>;
47+ using ProtoReturnType = ProtoArgType<to_proto_impl <SdkType>>;
4848
4949 ProtoReturnType ret;
50- to_proto <SdkType>{}(t, &ret);
50+ to_proto_impl <SdkType>{}(t, &ret);
5151
5252 return ret;
5353 }
5454};
5555
5656// Implementation struct for the omni-from_proto callable defined below.
57- struct from_proto_impl {
57+ struct from_proto_fn {
5858 template <typename ProtoType>
5959 auto operator ()(const ProtoType& proto) const { // NOLINT(misc-no-recursion)
60- return from_proto <ProtoType>{}(&proto);
60+ return from_proto_impl <ProtoType>{}(&proto);
6161 }
6262};
6363
@@ -71,13 +71,13 @@ namespace {
7171// / This callable works for any type with a proto_convert_details::to_proto specialization as
7272// / described above.
7373constexpr auto & to_proto =
74- proto_convert_details::static_const<proto_convert_details::to_proto_impl >::value;
74+ proto_convert_details::static_const<proto_convert_details::to_proto_fn >::value;
7575
7676// / @brief Function object implementing conversion from an API type to an SDK type.
7777// / This callable works for any type with a proto_convert_details::from_proto specialization as
7878// / described above.
7979constexpr auto & from_proto =
80- proto_convert_details::static_const<proto_convert_details::from_proto_impl >::value;
80+ proto_convert_details::static_const<proto_convert_details::from_proto_fn >::value;
8181
8282} // namespace
8383
@@ -87,13 +87,13 @@ constexpr auto& from_proto =
8787// / This is the return type of calling to_proto on an instance of SdkType.
8888template <typename SdkType>
8989using EquivalentApiType =
90- proto_convert_details::ProtoArgType<proto_convert_details::to_proto <SdkType>>;
90+ proto_convert_details::ProtoArgType<proto_convert_details::to_proto_impl <SdkType>>;
9191
9292// / @brief Type alias for the SDK type corresponding to a given API type.
9393// / This is the return type of calling from_proto on an instance of ApiType.
9494template <typename ApiType>
9595using EquivalentSdkType =
96- boost::callable_traits::return_type_t <proto_convert_details::from_proto <ApiType>>;
96+ boost::callable_traits::return_type_t <proto_convert_details::from_proto_impl <ApiType>>;
9797
9898} // namespace sdk
9999} // namespace viam
0 commit comments