File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -16,25 +16,22 @@ namespace cib {
16
16
*
17
17
* @see cib::config
18
18
*/
19
- template <typename Config> struct nexus {
20
- private:
21
- using this_t = nexus<Config>;
22
19
20
+ template <typename Config> struct nexus {
23
21
// Workaround unfortunate bug in clang where it can't deduce "auto" sometimes
24
22
#define CIB_BUILD_SERVICE \
25
23
initialized<Config, Tag>::value.template build<initialized<Config, Tag>>()
26
24
27
- public:
28
25
template <typename Tag>
29
26
constexpr static decltype (CIB_BUILD_SERVICE) service = CIB_BUILD_SERVICE;
30
27
#undef CIB_BUILD_SERVICE
31
28
32
29
static void init () {
33
30
auto const service = []<typename T> {
34
- using from_t = std::remove_cvref_t <decltype (this_t ::service<T>)>;
31
+ using from_t = std::remove_cvref_t <decltype (nexus ::service<T>)>;
35
32
using to_t = std::remove_cvref_t <decltype (cib::service<T>)>;
36
33
37
- auto &service_impl = this_t ::service<T>;
34
+ auto &service_impl = nexus ::service<T>;
38
35
if constexpr (std::is_convertible_v<from_t , to_t >) {
39
36
cib::service<T> = service_impl;
40
37
} else {
You can’t perform that action at this time.
0 commit comments