-
Notifications
You must be signed in to change notification settings - Fork 425
Description
A boost problem? or libc++ problem?
Details of build error.
[ 25%] Building CXX object src/CMakeFiles/cppnetlib-uri.dir/uri.cpp.o
cd /home/ma/workspace/uri-dev/obj/src && /usr/bin/clang++ -std=c++11 -stdlib=libc++ -I/home/ma/workspace/uri-dev/uri/src -o CMakeFiles/cppnetlib-uri.dir/uri.cpp.o -c /home/ma/workspace/uri-dev/uri/src/uri.cpp
In file included from /home/ma/workspace/uri-dev/uri/src/uri.cpp:9:
In file included from /home/ma/workspace/uri-dev/uri/src/detail/uri_parse.hpp:11:
In file included from /usr/include/boost/range/iterator_range.hpp:13:
/usr/include/boost/range/iterator_range_core.hpp:180:17: error: field of type 'std::__1::__wrap_iter<const char *>'
has private constructor
m_Begin(Begin), m_End(End)
^
/home/ma/workspace/uri-dev/uri/src/uri.cpp:342:40: note: in instantiation of function template specialization
'boost::iterator_range<std::__1::wrap_iter<const char *> >::iterator_range<const char *>' requested here
return to_string_ref(pimpl->uri, boost::iterator_rangeuri::iterator(first, last));
^
/usr/include/c++/v1/iterator:1188:31: note: declared private here
_LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
^
In file included from /home/ma/workspace/uri-dev/uri/src/uri.cpp:9:
In file included from /home/ma/workspace/uri-dev/uri/src/detail/uri_parse.hpp:11:
In file included from /usr/include/boost/range/iterator_range.hpp:13:
/usr/include/boost/range/iterator_range_core.hpp:180:33: error: field of type 'std::__1::__wrap_iter<const char *>'
has private constructor
m_Begin(Begin), m_End(End)
^
/usr/include/c++/v1/iterator:1188:31: note: declared private here
_LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
^
2 errors generated.
make[2]: *** [src/CMakeFiles/cppnetlib-uri.dir/uri.cpp.o] Error 1
make[2]: Leaving directory /home/ma/workspace/uri-dev/obj' make[1]: *** [src/CMakeFiles/cppnetlib-uri.dir/all] Error 2 make[1]: Leaving directory
/home/ma/workspace/uri-dev/obj'
make: *** [all] Error 2
ma@ma-1000H:~/workspace/uri-dev/obj$