//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // struct iterator_traits // { // }; #include struct not_an_iterator { }; template struct has_value_type { private: struct two {char lx; char lxx;}; template static two test(...); template static char test(typename _Up::value_type* = 0); public: static const bool value = sizeof(test<_Tp>(0)) == 1; }; int main() { typedef std::iterator_traits It; static_assert(!(has_value_type::value), ""); }