File tree Expand file tree Collapse file tree 2 files changed +5
-27
lines changed
ReflectionTemplateLib/rtl Expand file tree Collapse file tree 2 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 2323*
2424* Declared in namespace rtl.
2525*/
26- #include < Record.h>
26+ #include < inc/ Record.h>
2727
2828
2929/*
3838*
3939* Declared in namespace rtl.
4040*/
41- #include < Function.hpp>
41+ #include < inc/ Function.hpp>
4242
4343
4444/*
6060*
6161* Declared in namespace rtl.
6262*/
63- #include < Method.hpp>
63+ #include < inc/ Method.hpp>
6464
6565
6666/*
7878*
7979* Declared in namespace rtl.
8080*/
81- #include < CxxMirror.hpp>
82-
83- #include < RObject.hpp>
84-
85- #include < dispatch/rtl_function.h>
86-
87- #include < dispatch/rtl_method.h>
88-
89- #include < dispatch/rtl_method_const.h>
81+ #include < inc/CxxMirror.hpp>
9082
9183#include < builder/RObjectBuilder.hpp>
9284
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ namespace rtl::dispatch
3434 return static_cast <const method_ptr<record_t , return_t , signature_t ...>&>(m_functor).f_ptr ();
3535 }
3636
37- template <class return_t > requires (!std::is_const_v< record_t >)
37+ template <class return_t >
3838 constexpr const hopper_t <return_t > get_hopper (std::size_t p_returnId = 0 ) const
3939 {
4040 if (p_returnId == 0 || p_returnId == m_functor.m_return_id ) [[likely]]
@@ -45,20 +45,6 @@ namespace rtl::dispatch
4545 return hopper_t <return_t >();
4646 }
4747
48- template <class return_t >
49- using hopper_ct = rtl::method<const record_t , return_t (signature_t ...)>;
50-
51- template <class return_t > requires (std::is_const_v<record_t >)
52- constexpr const hopper_ct<return_t> get_hopper(std::size_t p_returnId = 0 ) const
53- {
54- if (p_returnId == 0 || p_returnId == m_functor.m_return_id ) [[likely]]
55- {
56- auto fptr = static_cast <const method_ptr<const record_t , return_t , signature_t ...>&>(m_functor).f_ptr ();
57- return hopper_ct<return_t >(fptr);
58- }
59- return hopper_ct<return_t >();
60- }
61-
6248 lambda_method (const functor& p_functor, const erasure_base& p_erasure) noexcept
6349 : lambda_base(p_functor, p_erasure)
6450 { }
You can’t perform that action at this time.
0 commit comments