forked from boostorg/utility
Moved to much cleaner system of using BOOST_TT_BROKEN_COMPILER_SPEC
for handling vc6/7 deficiencies with iterator_traits. Fixed a bug in iterator_facade which was causing incomplete types to be passed through is_convertible. Reinstated libs/utility/iterator_traits_test.cpp [SVN r19840]
This commit is contained in:
1 parent
c86fcbf456
commit
b5ae0ad86b
5 files changed
+1
-74
No files matched your search
@@ -11,41 +11,6 @@
|
||||
#include <algorithm>
|
||||
#include <boost/iterator/indirect_iterator.hpp>
|
||||
|
||||
#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
namespace boost { namespace detail
|
||||
{
|
||||
template <>
|
||||
struct iterator_traits<char*>
|
||||
: ptr_iter_traits<char>
|
||||
{
|
||||
};
|
||||
|
||||
template <>
|
||||
struct iterator_traits<char const*>
|
||||
: ptr_iter_traits<char, char const>
|
||||
{
|
||||
};
|
||||
|
||||
template <>
|
||||
struct iterator_traits<char**>
|
||||
: ptr_iter_traits<char*>
|
||||
{
|
||||
};
|
||||
|
||||
template <>
|
||||
struct iterator_traits<char const* const*>
|
||||
: ptr_iter_traits<char const*, char const* const>
|
||||
{
|
||||
};
|
||||
|
||||
template <>
|
||||
struct iterator_traits<char* const*>
|
||||
: ptr_iter_traits<char*, char* const>
|
||||
{
|
||||
};
|
||||
}}
|
||||
#endif
|
||||
|
||||
int main(int, char*[])
|
||||
{
|
||||
char characters[] = "abcdefg";
|
||||
|
||||
Reference in new issue
Block a user