ft_cxx_features.m4 (fstransform-0.9.3-src) | : | ft_cxx_features.m4 (fstransform-0.9.4) | ||
---|---|---|---|---|
m4_define([FT_CXX_FEATURES], | m4_define([FT_CXX_FEATURES], | |||
[ | [ | |||
AC_CACHE_CHECK([whether $ac_cv_prog_ac_ct_CXX supports explicit template insta ntiation], | AC_CACHE_CHECK([whether $CXX supports explicit template instantiation], | |||
[ac_cv_cxx_have_template_instantiation], | [ac_cv_cxx_have_template_instantiation], | |||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |||
template<typename T> | template<typename T> | |||
class ft_my_class { | class ft_my_class { | |||
public: | public: | |||
void apply(T *); | void apply(T *); | |||
}; | }; | |||
template<typename T> | template<typename T> | |||
void ft_my_class<T>::apply(T * arg) | void ft_my_class<T>::apply(T * arg) | |||
skipping to change at line 25 | skipping to change at line 25 | |||
template class ft_my_class<int>; | template class ft_my_class<int>; | |||
]], [[ | ]], [[ | |||
ft_my_class<int> dummy; | ft_my_class<int> dummy; | |||
]])], | ]])], | |||
[ac_cv_cxx_have_template_instantiation=yes], | [ac_cv_cxx_have_template_instantiation=yes], | |||
[ac_cv_cxx_have_template_instantiation=no] | [ac_cv_cxx_have_template_instantiation=no] | |||
) | ) | |||
]) | ]) | |||
AC_CACHE_CHECK([whether $ac_cv_prog_ac_ct_CXX supports inhibiting template ins tantiation], | AC_CACHE_CHECK([whether $CXX supports inhibiting template instantiation], | |||
[ac_cv_cxx_have_template_inhibition], | [ac_cv_cxx_have_template_inhibition], | |||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |||
template<typename T> | template<typename T> | |||
class ft_my_class { | class ft_my_class { | |||
public: | public: | |||
void apply(T *); | void apply(T *); | |||
}; | }; | |||
extern template class ft_my_class<int>; | extern template class ft_my_class<int>; | |||
]], [[ | ]], [[ | |||
ft_my_class<int> dummy; | ft_my_class<int> dummy; | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |