Changed code to avoid a bug in visual studio 2005

parent a4609486
...@@ -357,8 +357,10 @@ namespace dlib ...@@ -357,8 +357,10 @@ namespace dlib
return sample.size(); return sample.size();
} }
// This !is_built_in_scalar_type<typename T::type>::value is here to avoid an inexplicable bug in Vistual Studio 2005
template <typename T> template <typename T>
typename enable_if<is_pair<typename T::type::value_type> ,unsigned long>::type max_index_plus_one ( typename enable_if_c<(!is_built_in_scalar_type<typename T::type>::value) && (is_pair<typename T::type::value_type>::value) ,unsigned long>::type
max_index_plus_one (
const T& samples const T& samples
) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment