Test if the auto keyword is supported
This commit is contained in:
parent
20fcad55c5
commit
8f6df1ebf9
@ -12,6 +12,7 @@
|
|||||||
# HAVE_CONSTEXPR True if constexpr attribute is available
|
# HAVE_CONSTEXPR True if constexpr attribute is available
|
||||||
# HAVE_INTEGRAL_CONSTANT True if compiler supports integral_constant
|
# HAVE_INTEGRAL_CONSTANT True if compiler supports integral_constant
|
||||||
# HAVE_STATIC_ASSERT True if static_assert is available
|
# HAVE_STATIC_ASSERT True if static_assert is available
|
||||||
|
# HAVE_AUTO True if the compiler supports the auto keyword
|
||||||
# HAVE_VARIADIC_TEMPLATES True if variadic templates are supported
|
# HAVE_VARIADIC_TEMPLATES True if variadic templates are supported
|
||||||
# HAVE_VARIADIC_CONSTRUCTOR_SFINAE True if variadic constructor sfinae is supported
|
# HAVE_VARIADIC_CONSTRUCTOR_SFINAE True if variadic constructor sfinae is supported
|
||||||
# HAVE_RVALUE_REFERENCES True if rvalue references are supported
|
# HAVE_RVALUE_REFERENCES True if rvalue references are supported
|
||||||
@ -189,6 +190,16 @@ CHECK_CXX_SOURCE_COMPILES("
|
|||||||
" HAVE_STATIC_ASSERT
|
" HAVE_STATIC_ASSERT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# auto keyword
|
||||||
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
auto foo = 1.23;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
" HAVE_AUTO
|
||||||
|
)
|
||||||
|
|
||||||
# variadic template support
|
# variadic template support
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
Loading…
Reference in New Issue
Block a user