fixed asio warning, enabled C++11 in scout_webots_sim package

This commit is contained in:
Ruixiang Du
2020-03-05 21:12:40 +08:00
parent 0ccec5d4ba
commit 87e2db8813
3 changed files with 13 additions and 3 deletions

View File

@@ -36,8 +36,13 @@
#include <functional>
#include <iostream>
#define ASIO_ENABLE_OLD_SERVICES
#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"

View File

@@ -38,8 +38,13 @@
#include <deque>
#include <functional>
#define ASIO_ENABLE_OLD_SERVICES
#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"

View File

@@ -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)