8000 destruction_guard_test: fix build failure with new boost 1.67 by LocutusOfBorg · Pull Request #111 · ros/actionlib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

destruction_guard_test: fix build failure with new boost 1.67 #111

Merged
merged 1 commit into from
Aug 4, 2018

Conversation

LocutusOfBorg
Copy link
Contributor

posix_time::milliseconds should not take a float in input

cd /<>/build/test && /usr/bin/c++ -DROSCONSOLE_BACKEND_LOG4CXX -DROS_PACKAGE_NAME="actionlib" -I/<>/build/devel/include -I/<>/include -I/usr/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -g -O3 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/actionlib-destruction_guard_test.dir/destruction_guard_test.cpp.o -c /<>/test/destruction_guard_test.cpp
/<>/test/destruction_guard_test.cpp: In member function ‘virtual void TestRunner_threaded_test_Test::TestBody()’:
/<>/test/destruction_guard_test.cpp:89:68: error: no matching function for call to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(float)’
cond_.timed_wait(lock, boost::posix_time::milliseconds(100.0f));
^

posix_time::milliseconds should not take a float in input

cd /<<PKGBUILDDIR>>/build/test && /usr/bin/c++  -DROSCONSOLE_BACKEND_LOG4CXX -DROS_PACKAGE_NAME=\"actionlib\" -I/<<PKGBUILDDIR>>/build/devel/include -I/<<PKGBUILDDIR>>/include -I/usr/share/xmlrpcpp/cmake/../../../include/xmlrpcpp  -g -O3 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -o CMakeFiles/actionlib-destruction_guard_test.dir/destruction_guard_test.cpp.o -c /<<PKGBUILDDIR>>/test/destruction_guard_test.cpp
/<<PKGBUILDDIR>>/test/destruction_guard_test.cpp: In member function ‘virtual void TestRunner_threaded_test_Test::TestBody()’:
/<<PKGBUILDDIR>>/test/destruction_guard_test.cpp:89:68: error: no matching function for call to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(float)’
       cond_.timed_wait(lock, boost::posix_time::milliseconds(100.0f));
                                                                    ^
@mikaelarguedas
Copy link
Member

Thanks! looks like it was missed when we converted the other usages of boost::posix_time::milliseconds.

Follow up of #105

@mikaelarguedas mikaelarguedas merged commit 27d1811 into ros:indigo-devel Aug 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0