-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use default C++ and boost::placeholders::_N instead of deprecated _N #350
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
#include <tf2_ros/buffer.h> | ||
#include <geometry_msgs/Pose.h> | ||
|
||
#include <OgreVector3.h> | ||
#include <rviz/ogre_helpers/ogre_vector.h> | ||
#include <OgreQuaternion.h> | ||
|
||
#include <boost/thread/mutex.hpp> | ||
|
@@ -192,9 +192,11 @@ class FrameManager : public QObject | |
template <class M> | ||
void registerFilterForTransformStatusCheck(tf2_ros::MessageFilter<M>* filter, Display* display) | ||
{ | ||
filter->registerCallback(boost::bind(&FrameManager::messageCallback<M>, this, _1, display)); | ||
filter->registerCallback(boost::bind(&FrameManager::messageCallback<M>, this, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With c++14 it is recommended to use lambdas, not? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like a smaller change for right now, would prefer to get this in and look into other options later, and I think still is backwards compatible back to c++11 if that is a concern for any other users (but possibly lambdas are too? Would have to look into it). |
||
boost::placeholders::_1, display)); | ||
filter->registerFailureCallback(boost::bind( | ||
&FrameManager::failureCallback<M, tf2_ros::FilterFailureReason>, this, _1, _2, display)); | ||
&FrameManager::failureCallback<M, tf2_ros::FilterFailureReason>, this, | ||
boost::placeholders::_1, boost::placeholders::_2, display)); | ||
} | ||
|
||
/** @brief Return the current fixed frame name. */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set(CMAKE_CXX_STANDARD 17)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea here is that I assume every system this is building on now is >= 11 so on Ubuntu 20.04 the default will be 14, and on 22.04 it will be 17, there's no reason to hold it back at 11.