diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2013-09-16 09:55:51 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2013-09-16 09:55:51 +0000 |
commit | e59b0780330a812ec8939976fe22c11169800d4d (patch) | |
tree | f2a10388abf542ede48d4b64050038526df6f047 /ACE/tests/Compiler_Features_24_Test.cpp | |
parent | ef4c7fcb54816337c6bd63b6b6cd0c1b6193820c (diff) | |
download | ATCD-e59b0780330a812ec8939976fe22c11169800d4d.tar.gz |
Diffstat (limited to 'ACE/tests/Compiler_Features_24_Test.cpp')
-rw-r--r-- | ACE/tests/Compiler_Features_24_Test.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ACE/tests/Compiler_Features_24_Test.cpp b/ACE/tests/Compiler_Features_24_Test.cpp index c1d5f65bd83..2a1e7221959 100644 --- a/ACE/tests/Compiler_Features_24_Test.cpp +++ b/ACE/tests/Compiler_Features_24_Test.cpp @@ -15,6 +15,11 @@ template <typename T> class o_r; +template <typename T> +struct o_t +{ + typedef o_r<T> ref_type; +}; class T_base {}; template<typename T, @@ -55,6 +60,11 @@ protected: friend o_r<_Tp1> make_reference(Args&& ...args); }; +o_t<A>::ref_type create () +{ + return make_f<A>(); +} + int run_main (int, ACE_TCHAR *[]) { @@ -63,7 +73,7 @@ run_main (int, ACE_TCHAR *[]) ACE_DEBUG ((LM_INFO, ACE_TEXT ("Compiler Feature 24 Test does compile and run.\n"))); - o_r<A> l = make_f<A>(); + o_r<A> l = create(); ACE_END_TEST; |