indicated use of C++14 in examples

This commit is contained in:
joaquintides
2017-06-13 21:46:51 +02:00
parent 2a7930d334
commit e0f0a3f2ca
2 changed files with 11 additions and 4 deletions
+6 -3
View File
@@ -254,7 +254,8 @@ juggernaut 0,juggernaut 4,goblin 1,goblin 3,goblin 5,goblin 8,warrior 2,warrior
[section `boost::function_collection`]
[import ../example/basic_function.cpp]
(Code samples from [@../../example/basic_function.cpp `basic_function.cpp`].)
(Code samples from [@../../example/basic_function.cpp `basic_function.cpp`].
C++14 `std::make_unique` is used.)
Well into the development of the game, the product manager requests that two new
types of entities be added to the rendering loop:
@@ -368,7 +369,8 @@ each type autonomously: this is left as an exercise to the reader.
[section Deeper into the segmented nature of Boost.PolyCollection]
[import ../example/segmented_structure.cpp]
(Code samples from [@../../example/segmented_structure.cpp `segmented_structure.cpp`].)
(Code samples from [@../../example/segmented_structure.cpp `segmented_structure.cpp`].
C++14 `std::make_unique` is used.)
[section Type registration]
@@ -690,7 +692,8 @@ signature, etc.].
[section Algorithms]
[import ../example/algorithms.cpp]
(Code samples from [@../../example/algorithms.cpp `algorithms.cpp`].)
(Code samples from [@../../example/algorithms.cpp `algorithms.cpp`].
C++14 generic lambda expressions are used.)
The ultimate purpose of Boost.PolyCollection is to speed up the processing of
large quantities of polymorphic entities, in particular for those operations
+5 -1
View File
@@ -1,4 +1,4 @@
# Copyright 2016 Joaquín M López Muñoz.
# Copyright 2016-2017 Joaquín M López Muñoz.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
@@ -28,6 +28,8 @@ exe basic_base
exe basic_function
: basic_function.cpp
: <toolset>gcc:<cxxflags>-std=c++14
<toolset>clang:<cxxflags>-std=c++14
;
exe exceptions
@@ -46,4 +48,6 @@ exe perf
exe segmented_structure
: segmented_structure.cpp
: <toolset>gcc:<cxxflags>-std=c++14
<toolset>clang:<cxxflags>-std=c++14
;