Ошибка в Boost.Range 1.57?
От: BulatZiganshin  
Дата: 27.02.15 15:30
Оценка:
#include <boost/range/any_range.hpp>

не компилируется ни одним современным компилятором (clang35, gcc492, vc2013). самое внятное сообщение об ошибке выдал llvm:

C:\!\Haskell>compile-llvm.cmd -IC:\Base\Compiler\boost_1_57_0 boost-range-any_range.cpp
In file included from boost-range-any_range.cpp:1:
In file included from C:\Base\Compiler\boost_1_57_0\boost/range/any_range.hpp:17:
C:\Base\Compiler\boost_1_57_0\boost/range/detail/any_iterator.hpp:131:15: error: no template named 'postfix_increment_proxy'; did you mean 'iterators::detail::postfix_increment_proxy'?
        class postfix_increment_proxy<
              ^~~~~~~~~~~~~~~~~~~~~~~
              iterators::detail::postfix_increment_proxy
C:\Base\Compiler\boost_1_57_0\boost/iterator/iterator_facade.hpp:152:11: note: 'iterators::detail::postfix_increment_proxy' declared here
    class postfix_increment_proxy
          ^
In file included from boost-range-any_range.cpp:1:
In file included from C:\Base\Compiler\boost_1_57_0\boost/range/any_range.hpp:17:
C:\Base\Compiler\boost_1_57_0\boost/range/detail/any_iterator.hpp:131:15: error: class template partial specialization of 'postfix_increment_proxy' not in a namespace enclosing 'detail'
        class postfix_increment_proxy<
              ^
C:\Base\Compiler\boost_1_57_0\boost/iterator/iterator_facade.hpp:152:11: note: explicitly specialized declaration is here
    class postfix_increment_proxy
          ^
In file included from boost-range-any_range.cpp:1:
In file included from C:\Base\Compiler\boost_1_57_0\boost/range/any_range.hpp:17:
C:\Base\Compiler\boost_1_57_0\boost/range/detail/any_iterator.hpp:176:15: error: no template named 'writable_postfix_increment_proxy'; did you mean
      'iterators::detail::writable_postfix_increment_proxy'?
        class writable_postfix_increment_proxy<
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              iterators::detail::writable_postfix_increment_proxy
C:\Base\Compiler\boost_1_57_0\boost/iterator/iterator_facade.hpp:178:11: note: 'iterators::detail::writable_postfix_increment_proxy' declared here
    class writable_postfix_increment_proxy
          ^
In file included from boost-range-any_range.cpp:1:
In file included from C:\Base\Compiler\boost_1_57_0\boost/range/any_range.hpp:17:
C:\Base\Compiler\boost_1_57_0\boost/range/detail/any_iterator.hpp:176:15: error: class template partial specialization of 'writable_postfix_increment_proxy' not in a namespace enclosing
      'detail'
        class writable_postfix_increment_proxy<
              ^
C:\Base\Compiler\boost_1_57_0\boost/iterator/iterator_facade.hpp:178:11: note: explicitly specialized declaration is here
    class writable_postfix_increment_proxy
          ^
4 errors generated.
Люди, я люблю вас! Будьте бдительны!!!
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.