diff options
author | Brad King <brad.king@kitware.com> | 2005-04-13 19:39:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-13 19:39:03 (GMT) |
commit | be1084b5241725095a7e0591eaf593a4606204a1 (patch) | |
tree | cc9f9c5e94b5c22dd4f375d718e3eed75d82afd3 /Source/kwsys/kwsysPlatformCxxTests.cxx | |
parent | 551b28d501058c3437b0c8d962e1662ccdbef392 (diff) | |
download | CMake-be1084b5241725095a7e0591eaf593a4606204a1.zip CMake-be1084b5241725095a7e0591eaf593a4606204a1.tar.gz CMake-be1084b5241725095a7e0591eaf593a4606204a1.tar.bz2 |
COMP: Added KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT check for non-standard argument to stl allocator<>::max_size method. Needed for kwsys hashtable to compile on Sun CC.
Diffstat (limited to 'Source/kwsys/kwsysPlatformCxxTests.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformCxxTests.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformCxxTests.cxx b/Source/kwsys/kwsysPlatformCxxTests.cxx index 5c1288e..74e83bd 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cxx +++ b/Source/kwsys/kwsysPlatformCxxTests.cxx @@ -122,6 +122,19 @@ int main() } #endif +#ifdef TEST_KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT +#include <memory> +void f(kwsys_stl::allocator<char> const& a) +{ + a.max_size(sizeof(int)); +}; +int main() +{ + f(kwsys_stl::allocator<char>()); + return 0; +} +#endif + #ifdef TEST_KWSYS_STAT_HAS_ST_MTIM #include <sys/types.h> #include <sys/stat.h> |