Skip to content

Commit c173ddb

Browse files
committed
deprecated API's marked, early warning.
1 parent 2450272 commit c173ddb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ReflectionTemplateLib/access/inc/Function.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ namespace rtl {
9393
bool hasSignature() const;
9494

9595
template<class ..._args>
96+
[[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
9697
Return operator()(_args&&...params) const noexcept;
9798

9899
template<class ..._signature>
100+
[[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
99101
const detail::FunctionCaller<_signature...> bind() const noexcept;
100102

101103
friend detail::CxxReflection;

ReflectionTemplateLib/access/inc/Method.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,20 @@ namespace rtl {
6060
bool hasSignature() const;
6161

6262
template<class ..._signature>
63+
[[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
6364
const detail::DefaultInvoker<_signature...> bind(const RObject& pTarget) const;
6465

6566
template<class ..._signature>
67+
[[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
6668
const detail::NonConstInvoker<_signature...> bind(constCast<RObject>&& pTarget) const;
6769

6870
/* @method: operator()()
6971
@return: lambda
7072
* accepts no arguments for 'target', since associated functor is static-member-functions.
7173
* returns a lambda, which forwards the call to finally call the associated static-member-function functor.
7274
* provides syntax like,'method()(params...)', first'()' is empty & second'()' takes the actual params.
73-
*/ constexpr auto operator()() const
75+
*/ [[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
76+
constexpr auto operator()() const
7477
{
7578
return detail::FunctionCaller<>{ this };
7679
}
@@ -82,11 +85,13 @@ namespace rtl {
8285
* accepts 'pTarget', which contains the actual object on which the member-function functor associated with 'this' is invoked.
8386
* returns a lambda, which forwards the call to 'call', finally invoking the associated non-static-member-function functor.
8487
* provides syntax like, 'method(pTarget)(params...)', keeping the target & params seperate.
85-
*/ constexpr detail::DefaultInvoker<> operator()(const RObject& pTarget) const
88+
*/ [[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
89+
constexpr detail::DefaultInvoker<> operator()(const RObject& pTarget) const
8690
{
8791
return detail::DefaultInvoker<>{ this, &pTarget };
8892
}
8993

94+
[[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
9095
constexpr detail::NonConstInvoker<> operator()(constCast<RObject>&& pTarget) const
9196
{
9297
return detail::NonConstInvoker<>{ this, &pTarget.m_target };

ReflectionTemplateLib/access/inc/Record.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ namespace rtl {
9090
* if no constructor found, error::ConstructorNotRegisteredInRtl is returned with empty 'RObject'.
9191
* on success error::None and newly constructed object wrapped under 'RObject' (type erased, treated as non-const) is returned.
9292
*/ template<alloc _alloc, class ..._ctorArgs>
93+
[[deprecated("Will be removed soon from the 'release' branch. Replacement API in progress.")]]
9394
Return create(_ctorArgs&& ...params) const
9495
{
9596
static_assert(_alloc != rtl::alloc::None, "Instance cannot be created with 'rtl::alloc::None' option.");

0 commit comments

Comments
 (0)