
On 02/10/11 15:12, Christopher Jefferson wrote: [snip]
Thanks, I am already happily running libc++ on mac, and running the boost regression tester (which is failing in lots of ways, which I want to fix).
This may be related. When compiling the attached, I get: /home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang++ -c -std=gnu++0x -stdlib=libc++ -D__GXX_EXPERIMENTAL_CXX0X__ -I/home/evansl/prog_dev/boost-svn/ro/sandbox/rw/variadic_templates -I/home/evansl/prog_dev/boost-svn/ro/sandbox/ro/switch -I/home/evansl/prog_dev/boost-svn/ro/trunk -DTEMPLATE_DEPTH=300 boost_test_impl_debug.cpp -MMD -o /home/evansl/prog_dev/boost-svn/ro/trunk/sandbox-local/build/clangxx/clang/boost_test_impl_debug.o In file included from boost_test_impl_debug.cpp:1: /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:737:34: error: no viable conversion from 'unit_test::readwrite_property<std::string>' to 'key_type' (aka 'std::__1::basic_string<char>') s_info.m_dbg_starter_reg[s_info.p_dbg] = s; ^~~~~~~~~~~~ In file included from boost_test_impl_debug.cpp:1: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:21: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/detail/global_typedef.hpp:18: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/utils/basic_cstring/basic_cstring.hpp:21: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/utils/basic_cstring/bcs_char_traits.hpp:25: /usr/include/c++/v1/string:1032:5: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'const std::__1::basic_string<char> &' for 1st argument basic_string(const basic_string& __str); ^ /usr/include/c++/v1/string:1036:5: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'std::__1::basic_string<char> &&' for 1st argument basic_string(basic_string&& __str); ^ /usr/include/c++/v1/string:1040:31: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'const_pointer' (aka 'const char *') for 1st argument _LIBCPP_INLINE_VISIBILITY basic_string(const_pointer __s); ^ /usr/include/c++/v1/string:1060:5: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'initializer_list<value_type>' for 1st argument basic_string(initializer_list<value_type> __il); ^ In file included from boost_test_impl_debug.cpp:1: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:56: /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/utils/class_properties.hpp:59:5: note: candidate function operator read_access_t() const { return value; } ^ In file included from boost_test_impl_debug.cpp:1: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:61: /usr/include/c++/v1/map:798:40: note: passing argument to parameter '__k' here mapped_type& operator[](key_type&& __k); ^ In file included from boost_test_impl_debug.cpp:1: /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:886:56: error: no viable conversion from 'unit_test::readwrite_property<std::string>' to 'key_type' (aka 'std::__1::basic_string<char>') dbg_starter starter = s_info.m_dbg_starter_reg[s_info.p_dbg]; ^~~~~~~~~~~~ In file included from boost_test_impl_debug.cpp:1: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:21: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/detail/global_typedef.hpp:18: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/utils/basic_cstring/basic_cstring.hpp:21: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/utils/basic_cstring/bcs_char_traits.hpp:25: /usr/include/c++/v1/string:1032:5: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'const std::__1::basic_string<char> &' for 1st argument basic_string(const basic_string& __str); ^ /usr/include/c++/v1/string:1036:5: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'std::__1::basic_string<char> &&' for 1st argument basic_string(basic_string&& __str); ^ /usr/include/c++/v1/string:1040:31: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'const_pointer' (aka 'const char *') for 1st argument _LIBCPP_INLINE_VISIBILITY basic_string(const_pointer __s); ^ /usr/include/c++/v1/string:1060:5: note: candidate constructor not viable: no known conversion from 'unit_test::readwrite_property<std::string>' to 'initializer_list<value_type>' for 1st argument basic_string(initializer_list<value_type> __il); ^ In file included from boost_test_impl_debug.cpp:1: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:56: /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/utils/class_properties.hpp:59:5: note: candidate function operator read_access_t() const { return value; } ^ In file included from boost_test_impl_debug.cpp:1: In file included from /home/evansl/prog_dev/boost-svn/ro/trunk/boost/test/impl/debug.ipp:61: /usr/include/c++/v1/map:798:40: note: passing argument to parameter '__k' here mapped_type& operator[](key_type&& __k); ^ 2 errors generated.