From 4a7154b219c128822597145caad3463c01015f7c Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 19 Sep 2014 11:11:38 -0400 Subject: [PATCH] Add additional type to allow for types themselves to be declared deprecated (through using statements and the like). --- sol/deprecate.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sol/deprecate.hpp b/sol/deprecate.hpp index f00a6e12..498e4807 100644 --- a/sol/deprecate.hpp +++ b/sol/deprecate.hpp @@ -32,4 +32,13 @@ #endif // compilers #endif // SOL_DEPRECATED -#endif // SOL_DEPRECATE_HPP +namespace sol { +namespace detail { + template + struct SOL_DEPRECATED deprecate_type { + using type = T; + }; +} // detail +} // sol + +#endif // SOL_DEPRECATE_HPP