Give shared_ptr the same treatment.

Here I have defined my own test for the feature. It's not an extensive test
but it checks for the presence of the class.
This commit is contained in:
Matt Williams
2012-11-23 14:16:23 +00:00
parent 989e6ea589
commit 9f5fe452c9
4 changed files with 18 additions and 5 deletions

View File

@ -130,3 +130,4 @@ cxx11_check_feature("rvalue-references" HAS_CXX11_RVALUE_REFERENCES)
cxx11_check_feature("sizeof_member" HAS_CXX11_SIZEOF_MEMBER)
cxx11_check_feature("static_assert" HAS_CXX11_STATIC_ASSERT)
cxx11_check_feature("variadic_templates" HAS_CXX11_VARIADIC_TEMPLATES)
cxx11_check_feature("shared_ptr" HAS_CXX11_SHARED_PTR)

View File

@ -0,0 +1,7 @@
#include <memory>
int main()
{
std::shared_ptr<int> test;
return 0;
}