Project

General

Profile

Actions

Bug #2102

closed

Compile error with tests and precompiled headers

Added by Yingdi Yu about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
10/31/2014
Due date:
% Done:

100%

Estimated time:

Description

Port has been upgraded, and all the depended ports have been re-installed. But there are still compile errors

$ ./waf configure --with-tests
$ ./waf

And the error output is:

In file included from <built-in>:191:
In file included from /Users/yingdi/Develop/ndn-cxx/build/../src/common-pch.hpp:46:
In file included from /opt/local/include/boost/property_tree/ptree.hpp:23:
In file included from /opt/local/include/boost/multi_index/sequenced_index.hpp:49:
In file included from /opt/local/include/boost/bind.hpp:22:
In file included from /opt/local/include/boost/bind/bind.hpp:26:
In file included from /opt/local/include/boost/mem_fn.hpp:22:
In file included from /opt/local/include/boost/bind/mem_fn.hpp:215:
/opt/local/include/boost/bind/mem_fn_template.hpp:105:30: error: no matching function for call to 'get_pointer'
        BOOST_MEM_FN_RETURN (get_pointer(u)->*f_)();
                             ^~~~~~~~~~~
/opt/local/include/boost/bind/mem_fn_template.hpp:115:29: note: in instantiation of function template specialization 'boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>::call<const std::__1::placeholders::__ph<1> >' requested here
        BOOST_MEM_FN_RETURN call(u, p);
                            ^
/opt/local/include/boost/bind/bind.hpp:243:16: note: in instantiation of function template specialization 'boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>::operator()<std::__1::placeholders::__ph<1> >' requested here
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_]);
               ^
/opt/local/include/boost/bind/bind_template.hpp:47:27: note: in instantiation of function template specialization 'boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > >::operator()<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<const ndn::name::Component &> >' requested here
        BOOST_BIND_RETURN l_(type<result_type>(), f_, a, 0);
                          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:413:12: note: in instantiation of function template specialization 'boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >::operator()<ndn::name::Component>' requested here
    return _VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__args)...);
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:347:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1370:12: note: in instantiation of function template specialization 'std::__1::__invoke<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > > &, const ndn::name::Component &>' requested here
    return __invoke(__f_.first(), _VSTD::forward<_ArgTypes>(__arg)...);
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1596:26: note: in instantiation of member function 'std::__1::__function::__func<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, std::__1::allocator<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > > >, boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>::operator()' requested here
            ::new (__f_) _FF(_VSTD::move(__f));
                         ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:314:37: note: in instantiation of function template specialization 'std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>::function<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > > >' requested here
  cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
                                    ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:314:51: note: in instantiation of function template specialization 'boost::tuples::cons<std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>, boost::tuples::cons<std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type> > > > >::cons<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, boost::tuples::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > > >' requested here
  cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
                                                  ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:576:34: note: in instantiation of function template specialization 'boost::tuples::cons<std::__1::function<ndn::name::Component (const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>, boost::tuples::cons<std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type> > > > > >::cons<ndn::name::Component (*)(const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &), boost::tuples::cons<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, boost::tuples::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > > > >' requested here
  tuple(const cons<U1, U2>& p) : inherited(p) {}
                                 ^
../tests/unit-tests/test-name.cpp:193:23: note: in instantiation of function template specialization 'boost::tuples::tuple<std::__1::function<ndn::name::Component (const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>, std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, ndn::Name, boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>::tuple<ndn::name::Component (*)(const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &), boost::tuples::cons<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, boost::tuples::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > > > >' requested here
    dataset.push_back(boost::make_tuple(&name::Component::fromTimestamp,
                      ^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:825:65: note: candidate template ignored: could not match 'shared_ptr' against '__ph'
template<class T> inline typename shared_ptr<T>::element_type * get_pointer(shared_ptr<T> const & p) BOOST_NOEXCEPT
                                                                ^
/opt/local/include/boost/optional/optional.hpp:1216:1: note: candidate template ignored: could not match 'optional' against '__ph'
get_pointer ( optional<T> const& opt )
^
/opt/local/include/boost/optional/optional.hpp:1224:1: note: candidate template ignored: could not match 'optional' against '__ph'
get_pointer ( optional<T>& opt )
^
/opt/local/include/boost/core/ref.hpp:291:40: note: candidate template ignored: could not match 'reference_wrapper' against '__ph'
template<class T> BOOST_FORCEINLINE T* get_pointer( reference_wrapper<T> const & r )
                                       ^
/opt/local/include/boost/get_pointer.hpp:20:23: note: candidate template ignored: could not match 'T *' against 'std::__1::placeholders::__ph<1>'
template<class T> T * get_pointer(T * p)
                      ^
/opt/local/include/boost/get_pointer.hpp:27:23: note: candidate template ignored: could not match 'auto_ptr' against '__ph'
template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                      ^
/opt/local/include/boost/get_pointer.hpp:34:23: note: candidate template ignored: could not match 'unique_ptr' against '__ph'
template<class T> T * get_pointer( std::unique_ptr<T> const& p )
                      ^
/opt/local/include/boost/get_pointer.hpp:39:23: note: candidate template ignored: could not match 'shared_ptr' against '__ph'
template<class T> T * get_pointer( std::shared_ptr<T> const& p )
                      ^
In file included from <built-in>:191:
In file included from /Users/yingdi/Develop/ndn-cxx/build/../src/common-pch.hpp:46:
In file included from /opt/local/include/boost/property_tree/ptree.hpp:23:
In file included from /opt/local/include/boost/multi_index/sequenced_index.hpp:49:
In file included from /opt/local/include/boost/bind.hpp:22:
/opt/local/include/boost/bind/bind.hpp:303:16: error: no matching function for call to object of type 'boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>'
        return unwrapper<F>::unwrap(f, 0)(a[base_type::a1_], a[base_type::a2_]);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/boost/bind/bind_template.hpp:89:27: note: in instantiation of function template specialization 'boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > >::operator()<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &> >' requested here
        BOOST_BIND_RETURN l_(type<result_type>(), f_, a, 0);
                          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__functional_base:413:12: note: in instantiation of function template specialization 'boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >::operator()<ndn::Name, boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > >' requested here
    return _VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__args)...);
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:347:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1370:12: note: in instantiation of function template specialization 'std::__1::__invoke<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > > &, ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>' requested here
    return __invoke(__f_.first(), _VSTD::forward<_ArgTypes>(__arg)...);
           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1596:26: note: in instantiation of member function 'std::__1::__function::__func<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, std::__1::allocator<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > > >, ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>::operator()' requested here
            ::new (__f_) _FF(_VSTD::move(__f));
                         ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:314:37: note: in instantiation of function template specialization 'std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>::function<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > > >' requested here
  cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
                                    ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:314:51: note: in instantiation of function template specialization 'boost::tuples::cons<std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type> > > >::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > >' requested here
  cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
                                                  ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:314:51: note: in instantiation of function template specialization 'boost::tuples::cons<std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>, boost::tuples::cons<std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type> > > > >::cons<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, boost::tuples::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > > >' requested here
  cons( const cons<HT2, TT2>& u ) : head(u.head), tail(u.tail) {}
                                                  ^
/opt/local/include/boost/tuple/detail/tuple_basic.hpp:576:34: note: in instantiation of function template specialization 'boost::tuples::cons<std::__1::function<ndn::name::Component (const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>, boost::tuples::cons<std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type> > > > > >::cons<ndn::name::Component (*)(const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &), boost::tuples::cons<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, boost::tuples::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > > > >' requested here
  tuple(const cons<U1, U2>& p) : inherited(p) {}
                                 ^
../tests/unit-tests/test-name.cpp:193:23: note: in instantiation of function template specialization 'boost::tuples::tuple<std::__1::function<ndn::name::Component (const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, std::__1::function<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > (const ndn::name::Component &)>, std::__1::function<ndn::Name &(ndn::Name &, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &)>, ndn::Name, boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, std::__1::function<bool (const ndn::name::Component &)>, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>::tuple<ndn::name::Component (*)(const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &), boost::tuples::cons<boost::_bi::bind_t<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::_mfi::cmf0<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, ndn::name::Component>, boost::_bi::list1<boost::_bi::value<std::__1::placeholders::__ph<1> > > >, boost::tuples::cons<boost::_bi::bind_t<ndn::Name &, boost::_mfi::mf1<ndn::Name &, ndn::Name, const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > > &>, boost::_bi::list2<boost::_bi::value<std::__1::placeholders::__ph<1> >, boost::_bi::value<std::__1::placeholders::__ph<2> > > >, boost::tuples::cons<ndn::Name, boost::tuples::cons<boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >, boost::tuples::cons<std::__1::__bind<bool (ndn::name::Component::*)() const, std::__1::placeholders::__ph<1> &>, boost::tuples::null_type> > > > > >' requested here
    dataset.push_back(boost::make_tuple(&name::Component::fromTimestamp,
                      ^
/opt/local/include/boost/bind/mem_fn_template.hpp:168:25: note: candidate function [with U = std::__1::placeholders::__ph<1>] not viable: no known conversion from 'std::__1::placeholders::__ph<2>' to 'const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >' for 2nd argument
    template<class U> R operator()(U & u, A1 a1) const
                        ^
/opt/local/include/boost/bind/mem_fn_template.hpp:176:25: note: candidate function [with U = std::__1::placeholders::__ph<1>] not viable: no known conversion from 'std::__1::placeholders::__ph<2>' to 'const boost::chrono::time_point<boost::chrono::system_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000> > >' for 2nd argument
    template<class U> R operator()(U const & u, A1 a1) const
                        ^
/opt/local/include/boost/bind/mem_fn_template.hpp:163:7: note: candidate function not viable: no known conversion from 'std::__1::placeholders::__ph<1>' to 'ndn::Name *' for 1st argument
    R operator()(T * p, A1 a1) const
      ^
/opt/local/include/boost/bind/mem_fn_template.hpp:184:7: note: candidate function not viable: no known conversion from 'std::__1::placeholders::__ph<1>' to 'ndn::Name &' for 1st argument
    R operator()(T & t, A1 a1) const
      ^
2 errors generated.

Waf: Leaving directory `/Users/yingdi/Develop/ndn-cxx/build'

Build failed
 -> task in 'unit-test-objects' failed (exit status 1): 
    {task 4357906256: cxx test-name.cpp -> test-name.cpp.2.o}
['clang++', '-std=c++0x', '-std=c++11', '-stdlib=libc++', '-pedantic', '-Wall', '-O2', '-g', '-fPIC', '-include', '/Users/yingdi/Develop/ndn-cxx/build/tests/tests-base.1', '-I/Users/yingdi/Develop/ndn-cxx/build/tests', '-I/Users/yingdi/Develop/ndn-cxx/tests', '-I/Users/yingdi/Develop/ndn-cxx/build/src', '-I/Users/yingdi/Develop/ndn-cxx/src', '-I/opt/local/include', '-DHAVE_SQLITE3=1', '../tests/unit-tests/test-name.cpp', '-c', '-o', '/Users/yingdi/Develop/ndn-cxx/build/tests/unit-tests/test-name.cpp.2.o
Actions #1

Updated by Yingdi Yu about 10 years ago

  • Description updated (diff)
Actions #2

Updated by Yingdi Yu about 10 years ago

  • Description updated (diff)
Actions #3

Updated by Alex Afanasyev about 10 years ago

  • Subject changed from Compile error on OS X 10.10 to Compile error with tests and precompiled headers
  • Category set to Base
  • Status changed from New to Code review
  • Assignee set to Alex Afanasyev
  • Target version set to v0.3
  • % Done changed from 0 to 100
Actions #4

Updated by Yingdi Yu about 10 years ago

  • Description updated (diff)
Actions #5

Updated by Alex Afanasyev about 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF