mirror of
https://github.com/westonrobot/scout_ros.git
synced 2026-01-12 03:15:01 +08:00
fixed asio warning, enabled C++11 in scout_webots_sim package
This commit is contained in:
@@ -36,8 +36,13 @@
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
|
||||
#ifndef ASIO_ENABLE_OLD_SERVICES
|
||||
#define ASIO_ENABLE_OLD_SERVICES
|
||||
#endif
|
||||
|
||||
#ifndef ASIO_HAS_POSIX_STREAM_DESCRIPTOR
|
||||
#define ASIO_HAS_POSIX_STREAM_DESCRIPTOR
|
||||
#endif
|
||||
|
||||
#include "asio.hpp"
|
||||
#include "asio/posix/basic_stream_descriptor.hpp"
|
||||
|
||||
@@ -38,8 +38,13 @@
|
||||
#include <deque>
|
||||
#include <functional>
|
||||
|
||||
#ifndef ASIO_ENABLE_OLD_SERVICES
|
||||
#define ASIO_ENABLE_OLD_SERVICES
|
||||
#endif
|
||||
|
||||
#ifndef ASIO_HAS_POSIX_STREAM_DESCRIPTOR
|
||||
#define ASIO_HAS_POSIX_STREAM_DESCRIPTOR
|
||||
#endif
|
||||
|
||||
#include "asio.hpp"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
|
||||
project(scout_webots_sim)
|
||||
|
||||
## Compile as C++11, supported in ROS Kinetic and newer
|
||||
# add_compile_options(-std=c++11)
|
||||
add_compile_options(-std=c++11)
|
||||
|
||||
## Find catkin macros and libraries
|
||||
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
||||
|
||||
Reference in New Issue
Block a user