Don't use SFINAE (disable_if) on compilers that don't support it.

[SVN r32405]
This commit is contained in:
Ronald Garcia
2006-01-24 17:58:20 +00:00
parent e85dd4e2f6
commit 00495c17c2
2 changed files with 8 additions and 0 deletions

View File

@@ -138,8 +138,12 @@ public:
}
template <class BaseList>
#ifdef BOOST_NO_SFINAE
void
#else
typename
disable_if<typename boost::is_integral<BaseList>::type,void >::type
#endif // BOOST_NO_SFINAE
reindex(const BaseList& values) {
boost::function_requires<
detail::multi_array::CollectionConcept<BaseList> >();

View File

@@ -73,8 +73,12 @@ public:
template <class BaseList>
#ifdef BOOST_NO_SFINAE
void
#else
typename
disable_if<typename boost::is_integral<BaseList>::type,void >::type
#endif
reindex(const BaseList& values) {
boost::function_requires<
detail::multi_array::CollectionConcept<BaseList> >();