usagi / virtual-keyboard-prototype-1

仮想キーボード試作1型
3 stars 0 forks source link

boost-1.49対応が微妙に足りてない。 #55

Closed usagi closed 10 years ago

usagi commented 10 years ago
FAILED: /usr/bin/g++    -Wall -pedantic-errors -std=c++11  -I../../libWRP-SQLite3/include -I../../libWRP-key/include -I/usr/include/opencv -MMD -MT CMakeFiles/etupirka.dir/etupirka.cxx.o -MF "CMakeFiles/etupirka.dir/etupirka.cxx.o.d" -o CMakeFiles/etupirka.dir/etupirka.cxx.o -c ../../etupirka.cxx
../../etupirka.cxx: In function ‘void {anonymous}::adjust_fps(const std::function<void()>&, const nanoseconds&)’:
../../etupirka.cxx:24:148: error: no matching function for call to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000ll>::subsecond_duration(boost::enable_if_c<true, boost::chrono::duration<long long int, boost::ratio<1ll, 1000000ll> > >::type)’
../../etupirka.cxx:24:148: note: candidates are:
In file included from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16:0,
                 from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13,
                 from /usr/include/boost/date_time/posix_time/ptime.hpp:12,
                 from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12,
                 from /usr/include/boost/thread/thread_time.hpp:11,
                 from /usr/include/boost/thread/locks.hpp:12,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from ../../etupirka.hxx:12,
                 from ../../etupirka.cxx:1:
/usr/include/boost/date_time/time_duration.hpp:269:14: note: boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(int64_t) [with base_duration = boost::posix_time::time_duration; long long int frac_of_second = 1000000ll; int64_t = long long int]
/usr/include/boost/date_time/time_duration.hpp:269:14: note:   no known conversion for argument 1 from ‘boost::enable_if_c<true, boost::chrono::duration<long long int, boost::ratio<1ll, 1000000ll> > >::type {aka boost::chrono::duration<long long int, boost::ratio<1ll, 1000000ll> >}’ to ‘int64_t {aka long long int}’
/usr/include/boost/date_time/time_duration.hpp:265:9: note: boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000ll>::subsecond_duration(const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000ll>&)
/usr/include/boost/date_time/time_duration.hpp:265:9: note:   no known conversion for argument 1 from ‘boost::enable_if_c<true, boost::chrono::duration<long long int, boost::ratio<1ll, 1000000ll> > >::type {aka boost::chrono::duration<long long int, boost::ratio<1ll, 1000000ll> >}’ to ‘const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000ll>&’
../../etupirka.cxx:24:148: error: unable to deduce ‘const auto’ from ‘<expression error>’