Skip to content

Commit 5dfacae

Browse files
committed
Add missing <algorithm> include to correctly use std algorithms in the examples
1 parent e37891d commit 5dfacae

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎example/doc_bufferstream.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <boost/interprocess/streams/bufferstream.hpp>
1717
#include <vector>
1818
#include <iterator>
19+
#include <algorithm> //std::copy, std::equal
1920
#include <cstddef>
2021
//<-
2122
#include "../test/get_process_id_name.hpp"

‎example/doc_cont.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <boost/container/vector.hpp>
1414
#include <boost/interprocess/allocators/allocator.hpp>
1515
#include <boost/interprocess/managed_shared_memory.hpp>
16+
#include <algorithm> //std::sort
1617
//<-
1718
#include "../test/get_process_id_name.hpp"
1819
//->

‎example/doc_spawn_vector.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <boost/interprocess/allocators/allocator.hpp>
1616
#include <string>
1717
#include <cstdlib> //std::system
18+
#include <algorithm> //std::sort
1819
//<-
1920
#include "../test/get_process_id_name.hpp"
2021
//->

‎example/doc_vectorstream.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <boost/interprocess/managed_shared_memory.hpp>
1919
#include <boost/interprocess/streams/vectorstream.hpp>
2020
#include <iterator>
21+
#include <algorithm> //std::copy, std::equal
2122
//<-
2223
#include "../test/get_process_id_name.hpp"
2324
//->

0 commit comments

Comments
 (0)