Compiling with Boost using Clang errors
<p>I've been trying to compile a library (caffe) with the boost library using clang as the compiler on OSX 10.9. I'm running into a lot of errors with boost (version 1.57). Any suggestions on how to proceed? Here are what the errors look like. They're mostly about the same two issues below.</p>

<pre><code>In file included from /usr/local/include/boost/thread.hpp:13:
In file included from /usr/local/include/boost/thread/thread.hpp:12:
In file included from /usr/local/include/boost/thread/thread_only.hpp:17:
In file included from /usr/local/include/boost/thread/pthread/thread_data.hpp:11:
In file included from /usr/local/include/boost/thread/lock_guard.hpp:12:
In file included from /usr/local/include/boost/thread/detail/move.hpp:27:
In file included from /usr/local/include/boost/move/utility.hpp:21:
In file included from /usr/local/include/boost/move/traits.hpp:20:
In file included from /usr/local/include/boost/type_traits/is_nothrow_move_assignable.hpp:15:
In file included from /usr/local/include/boost/type_traits/has_trivial_move_assign.hpp:16:
/usr/local/include/boost/type_traits/is_const.hpp:57:105: error: 'T' does not refer to a value
   BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp&lt;BOOST_TT_AUX_CV_TRAITS_IMPL_PARAM(T)&gt;::is_const);
                                                                                                        ^
/usr/local/include/boost/config/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT'
#     define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment
                                                                       ^
/usr/local/include/boost/type_traits/is_const.hpp:51:17: note: declared here
template &lt;class T&gt;


usr/local/include/boost/date_time/gregorian/greg_day.hpp:44:45: error: type 'greg_day_rep' (aka 'constrained_value&lt;greg_day_policies&gt;') is not a direct or virtual base of 'boost::gregorian::greg_day'
    greg_day(unsigned short day_of_month) : greg_day_rep(day_of_month) {}
                                            ^~~~~~~~~~~~
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:45:46: error: use of undeclared identifier 'value_'
    unsigned short as_number() const {return value_;}
                                             ^
/usr/local/include/boost/date_time/gregorian/greg_day.hpp:46:46: error: use of undeclared identifier 'value_'
    operator unsigned short()  const {return value_;}
</code></pre>