From 7d9f58ca990edb57f427ae5e235ba2ab69182f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 13 Oct 2014 23:26:57 +0200 Subject: [PATCH] Added missing #pragma once --- example/doc_managed_multiple_allocation.cpp | 2 +- example/doc_spawn_vector.cpp | 2 +- .../allocators/detail/allocator_common.hpp | 6 +++++- include/boost/interprocess/anonymous_shared_memory.hpp | 4 ++++ include/boost/interprocess/creation_tags.hpp | 4 ++++ include/boost/interprocess/detail/atomic.hpp | 4 ++++ include/boost/interprocess/detail/cast_tags.hpp | 4 ++++ include/boost/interprocess/detail/file_wrapper.hpp | 6 +++++- .../boost/interprocess/detail/interprocess_tester.hpp | 4 ++++ .../detail/managed_open_or_create_impl.hpp | 4 ++++ include/boost/interprocess/detail/math_functions.hpp | 4 ++++ include/boost/interprocess/detail/move.hpp | 6 +++++- include/boost/interprocess/detail/named_proxy.hpp | 2 +- .../boost/interprocess/detail/os_file_functions.hpp | 4 ++++ .../boost/interprocess/detail/os_thread_functions.hpp | 4 ++++ .../boost/interprocess/detail/posix_time_types_wrk.hpp | 4 ++++ include/boost/interprocess/detail/ptime_wrk.hpp | 4 ++++ .../boost/interprocess/detail/shared_dir_helpers.hpp | 4 ++++ include/boost/interprocess/detail/utilities.hpp | 4 ++-- include/boost/interprocess/detail/win32_api.hpp | 10 +++++++--- include/boost/interprocess/detail/workaround.hpp | 4 ++++ .../interprocess/detail/xsi_shared_memory_device.hpp | 4 ++++ .../detail/xsi_shared_memory_file_wrapper.hpp | 4 ++++ include/boost/interprocess/file_mapping.hpp | 6 +++++- include/boost/interprocess/indexes/flat_map_index.hpp | 4 ++++ include/boost/interprocess/indexes/iset_index.hpp | 4 ++++ .../interprocess/indexes/iunordered_set_index.hpp | 4 ++++ include/boost/interprocess/indexes/map_index.hpp | 4 ++++ include/boost/interprocess/indexes/null_index.hpp | 4 ++++ .../boost/interprocess/indexes/unordered_map_index.hpp | 4 ++++ include/boost/interprocess/ipc/message_queue.hpp | 4 ++++ include/boost/interprocess/managed_external_buffer.hpp | 2 +- include/boost/interprocess/managed_heap_memory.hpp | 2 +- include/boost/interprocess/managed_mapped_file.hpp | 2 +- .../interprocess/managed_windows_shared_memory.hpp | 2 +- include/boost/interprocess/mapped_region.hpp | 6 +++++- .../interprocess/mem_algo/detail/mem_algo_common.hpp | 2 +- include/boost/interprocess/segment_manager.hpp | 2 +- include/boost/interprocess/shared_memory_object.hpp | 6 +++++- .../interprocess/smart_ptr/detail/sp_counted_base.hpp | 4 ++++ .../interprocess/smart_ptr/enable_shared_from_this.hpp | 4 ++++ include/boost/interprocess/smart_ptr/intrusive_ptr.hpp | 4 ++++ include/boost/interprocess/smart_ptr/scoped_ptr.hpp | 4 ++++ include/boost/interprocess/smart_ptr/shared_ptr.hpp | 6 +++++- include/boost/interprocess/smart_ptr/unique_ptr.hpp | 4 ++++ include/boost/interprocess/smart_ptr/weak_ptr.hpp | 4 ++++ include/boost/interprocess/streams/bufferstream.hpp | 4 ++++ include/boost/interprocess/streams/vectorstream.hpp | 4 ++++ .../interprocess/sync/detail/common_algorithms.hpp | 4 ++++ .../sync/detail/condition_algorithm_8a.hpp | 4 ++++ .../sync/detail/condition_any_algorithm.hpp | 4 ++++ include/boost/interprocess/sync/detail/locks.hpp | 4 ++++ include/boost/interprocess/sync/file_lock.hpp | 2 +- .../interprocess/sync/posix/ptime_to_timespec.hpp | 4 ++++ .../boost/interprocess/sync/posix/recursive_mutex.hpp | 4 ++++ .../interprocess/sync/posix/semaphore_wrapper.hpp | 4 ++++ include/boost/interprocess/sync/scoped_lock.hpp | 2 +- include/boost/interprocess/sync/sharable_lock.hpp | 2 +- .../interprocess/sync/shm/named_creation_functor.hpp | 4 ++++ include/boost/interprocess/sync/spin/condition.hpp | 6 +++++- .../interprocess/sync/spin/interprocess_barrier.hpp | 4 ++++ include/boost/interprocess/sync/upgradable_lock.hpp | 2 +- include/boost/interprocess/sync/windows/condition.hpp | 4 ++++ .../interprocess/sync/xsi/advanced_xsi_semaphore.hpp | 4 ++++ .../interprocess/sync/xsi/simple_xsi_semaphore.hpp | 4 ++++ .../boost/interprocess/sync/xsi/xsi_named_mutex.hpp | 6 +++++- include/boost/interprocess/windows_shared_memory.hpp | 4 ++++ include/boost/interprocess/xsi_key.hpp | 6 +++++- include/boost/interprocess/xsi_shared_memory.hpp | 6 +++++- test/deque_test.cpp | 2 +- test/emplace_test.hpp | 2 +- test/list_test.hpp | 2 +- test/movable_int.hpp | 2 +- test/set_test.hpp | 2 +- test/vector_test.hpp | 2 +- 75 files changed, 255 insertions(+), 35 deletions(-) diff --git a/example/doc_managed_multiple_allocation.cpp b/example/doc_managed_multiple_allocation.cpp index bc09968..1a7589d 100644 --- a/example/doc_managed_multiple_allocation.cpp +++ b/example/doc_managed_multiple_allocation.cpp @@ -10,7 +10,7 @@ #include //[doc_managed_multiple_allocation #include -#include //boost::move +#include //boost::move #include //assert #include //std::memset #include //std::nothrow diff --git a/example/doc_spawn_vector.cpp b/example/doc_spawn_vector.cpp index 8970527..c2f0dfe 100644 --- a/example/doc_spawn_vector.cpp +++ b/example/doc_spawn_vector.cpp @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) } return 0; -}; +} //] #include diff --git a/include/boost/interprocess/allocators/detail/allocator_common.hpp b/include/boost/interprocess/allocators/detail/allocator_common.hpp index 07c04f5..eb8fbfc 100644 --- a/include/boost/interprocess/allocators/detail/allocator_common.hpp +++ b/include/boost/interprocess/allocators/detail/allocator_common.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_ALLOCATOR_DETAIL_ALLOCATOR_COMMON_HPP #define BOOST_INTERPROCESS_ALLOCATOR_DETAIL_ALLOCATOR_COMMON_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include @@ -26,7 +30,7 @@ #include #include #include -#include +#include #include #include #include //std::swap diff --git a/include/boost/interprocess/anonymous_shared_memory.hpp b/include/boost/interprocess/anonymous_shared_memory.hpp index 5f9a151..aed868f 100644 --- a/include/boost/interprocess/anonymous_shared_memory.hpp +++ b/include/boost/interprocess/anonymous_shared_memory.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_ANONYMOUS_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_ANONYMOUS_SHARED_MEMORY_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/creation_tags.hpp b/include/boost/interprocess/creation_tags.hpp index 459eb4d..9ff27bf 100644 --- a/include/boost/interprocess/creation_tags.hpp +++ b/include/boost/interprocess/creation_tags.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_CREATION_TAGS_HPP #define BOOST_INTERPROCESS_CREATION_TAGS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/detail/atomic.hpp b/include/boost/interprocess/detail/atomic.hpp index 7e3cb18..c108467 100644 --- a/include/boost/interprocess/detail/atomic.hpp +++ b/include/boost/interprocess/detail/atomic.hpp @@ -15,6 +15,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_ATOMIC_HPP #define BOOST_INTERPROCESS_DETAIL_ATOMIC_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/detail/cast_tags.hpp b/include/boost/interprocess/detail/cast_tags.hpp index 37dabd1..0019af7 100644 --- a/include/boost/interprocess/detail/cast_tags.hpp +++ b/include/boost/interprocess/detail/cast_tags.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_CAST_TAGS_HPP #define BOOST_INTERPROCESS_CAST_TAGS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/detail/file_wrapper.hpp b/include/boost/interprocess/detail/file_wrapper.hpp index 193d741..507ec47 100644 --- a/include/boost/interprocess/detail/file_wrapper.hpp +++ b/include/boost/interprocess/detail/file_wrapper.hpp @@ -11,11 +11,15 @@ #ifndef BOOST_INTERPROCESS_DETAIL_FILE_WRAPPER_HPP #define BOOST_INTERPROCESS_DETAIL_FILE_WRAPPER_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include #include -#include +#include #include namespace boost { diff --git a/include/boost/interprocess/detail/interprocess_tester.hpp b/include/boost/interprocess/detail/interprocess_tester.hpp index 2fcc07b..8c00c4c 100644 --- a/include/boost/interprocess/detail/interprocess_tester.hpp +++ b/include/boost/interprocess/detail/interprocess_tester.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_INTERPROCESS_TESTER_HPP #define BOOST_INTERPROCESS_DETAIL_INTERPROCESS_TESTER_HPP +#if defined(_MSC_VER) +# pragma once +#endif + namespace boost{ namespace interprocess{ namespace ipcdetail{ diff --git a/include/boost/interprocess/detail/managed_open_or_create_impl.hpp b/include/boost/interprocess/detail/managed_open_or_create_impl.hpp index 1d8706d..bd08be5 100644 --- a/include/boost/interprocess/detail/managed_open_or_create_impl.hpp +++ b/include/boost/interprocess/detail/managed_open_or_create_impl.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_MANAGED_OPEN_OR_CREATE_IMPL #define BOOST_INTERPROCESS_MANAGED_OPEN_OR_CREATE_IMPL +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/detail/math_functions.hpp b/include/boost/interprocess/detail/math_functions.hpp index 20922b3..3826f16 100644 --- a/include/boost/interprocess/detail/math_functions.hpp +++ b/include/boost/interprocess/detail/math_functions.hpp @@ -16,6 +16,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_MATH_FUNCTIONS_HPP #define BOOST_INTERPROCESS_DETAIL_MATH_FUNCTIONS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/detail/move.hpp b/include/boost/interprocess/detail/move.hpp index 87684f6..22df7bd 100644 --- a/include/boost/interprocess/detail/move.hpp +++ b/include/boost/interprocess/detail/move.hpp @@ -14,7 +14,11 @@ #ifndef BOOST_INTERPROCESS_DETAIL_MOVE_HPP #define BOOST_INTERPROCESS_DETAIL_MOVE_HPP -#include +#if defined(_MSC_VER) +# pragma once +#endif + +#include namespace boost { namespace interprocess { diff --git a/include/boost/interprocess/detail/named_proxy.hpp b/include/boost/interprocess/detail/named_proxy.hpp index 0c26188..ee6668c 100644 --- a/include/boost/interprocess/detail/named_proxy.hpp +++ b/include/boost/interprocess/detail/named_proxy.hpp @@ -26,7 +26,7 @@ #ifndef BOOST_INTERPROCESS_PERFECT_FORWARDING #include #else -#include +#include #include #endif //#ifdef BOOST_INTERPROCESS_PERFECT_FORWARDING diff --git a/include/boost/interprocess/detail/os_file_functions.hpp b/include/boost/interprocess/detail/os_file_functions.hpp index cd69e1a..1b54807 100644 --- a/include/boost/interprocess/detail/os_file_functions.hpp +++ b/include/boost/interprocess/detail/os_file_functions.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_OS_FILE_FUNCTIONS_HPP #define BOOST_INTERPROCESS_DETAIL_OS_FILE_FUNCTIONS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/detail/os_thread_functions.hpp b/include/boost/interprocess/detail/os_thread_functions.hpp index 705a2fe..4604683 100644 --- a/include/boost/interprocess/detail/os_thread_functions.hpp +++ b/include/boost/interprocess/detail/os_thread_functions.hpp @@ -22,6 +22,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_OS_THREAD_FUNCTIONS_HPP #define BOOST_INTERPROCESS_DETAIL_OS_THREAD_FUNCTIONS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/detail/posix_time_types_wrk.hpp b/include/boost/interprocess/detail/posix_time_types_wrk.hpp index fa167f5..dbde3d1 100644 --- a/include/boost/interprocess/detail/posix_time_types_wrk.hpp +++ b/include/boost/interprocess/detail/posix_time_types_wrk.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP #define BOOST_INTERPROCESS_POSIX_TIMES_WRK_HPP +#if defined(_MSC_VER) +# pragma once +#endif + //workaround to avoid winsock redefines when using date-time #ifdef _WIN32 diff --git a/include/boost/interprocess/detail/ptime_wrk.hpp b/include/boost/interprocess/detail/ptime_wrk.hpp index 63d9915..87f05e2 100644 --- a/include/boost/interprocess/detail/ptime_wrk.hpp +++ b/include/boost/interprocess/detail/ptime_wrk.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_PTIME_WRK_HPP #define BOOST_INTERPROCESS_PTIME_WRK_HPP +#if defined(_MSC_VER) +# pragma once +#endif + //workaround to avoid winsock redefines when using date-time #ifdef _WIN32 diff --git a/include/boost/interprocess/detail/shared_dir_helpers.hpp b/include/boost/interprocess/detail/shared_dir_helpers.hpp index e3a4065..469ea04 100644 --- a/include/boost/interprocess/detail/shared_dir_helpers.hpp +++ b/include/boost/interprocess/detail/shared_dir_helpers.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SHARED_DIR_HELPERS_HPP #define BOOST_INTERPROCESS_DETAIL_SHARED_DIR_HELPERS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/detail/utilities.hpp b/include/boost/interprocess/detail/utilities.hpp index e09f48c..351b76c 100644 --- a/include/boost/interprocess/detail/utilities.hpp +++ b/include/boost/interprocess/detail/utilities.hpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include #include @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/detail/win32_api.hpp b/include/boost/interprocess/detail/win32_api.hpp index 02aeacc..d9d3e70 100644 --- a/include/boost/interprocess/detail/win32_api.hpp +++ b/include/boost/interprocess/detail/win32_api.hpp @@ -8,8 +8,12 @@ // ////////////////////////////////////////////////////////////////////////////// -#ifndef BOOST_INTERPROCESS_WIN32_PRIMITIVES_HPP -#define BOOST_INTERPROCESS_WIN32_PRIMITIVES_HPP +#ifndef BOOST_INTERPROCESS_WIN32_API_HPP +#define BOOST_INTERPROCESS_WIN32_API_HPP + +#if defined(_MSC_VER) +# pragma once +#endif #include #include @@ -2330,4 +2334,4 @@ inline unsigned long get_tick_count() #include -#endif //#ifdef BOOST_INTERPROCESS_WIN32_PRIMITIVES_HPP +#endif //#ifdef BOOST_INTERPROCESS_WIN32_API_HPP diff --git a/include/boost/interprocess/detail/workaround.hpp b/include/boost/interprocess/detail/workaround.hpp index e53b69b..d0456b5 100644 --- a/include/boost/interprocess/detail/workaround.hpp +++ b/include/boost/interprocess/detail/workaround.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WORKAROUND_HPP #define BOOST_INTERPROCESS_DETAIL_WORKAROUND_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) diff --git a/include/boost/interprocess/detail/xsi_shared_memory_device.hpp b/include/boost/interprocess/detail/xsi_shared_memory_device.hpp index faad808..5bb0771 100644 --- a/include/boost/interprocess/detail/xsi_shared_memory_device.hpp +++ b/include/boost/interprocess/detail/xsi_shared_memory_device.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_XSI_SHARED_MEMORY_DEVICE_HPP #define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_DEVICE_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/detail/xsi_shared_memory_file_wrapper.hpp b/include/boost/interprocess/detail/xsi_shared_memory_file_wrapper.hpp index b9a10eb..d724e7d 100644 --- a/include/boost/interprocess/detail/xsi_shared_memory_file_wrapper.hpp +++ b/include/boost/interprocess/detail/xsi_shared_memory_file_wrapper.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_XSI_SHARED_MEMORY_FILE_WRAPPER_HPP #define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_FILE_WRAPPER_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/file_mapping.hpp b/include/boost/interprocess/file_mapping.hpp index d008c1a..9352603 100644 --- a/include/boost/interprocess/file_mapping.hpp +++ b/include/boost/interprocess/file_mapping.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_FILE_MAPPING_HPP #define BOOST_INTERPROCESS_FILE_MAPPING_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include @@ -19,7 +23,7 @@ #include #include #include -#include +#include #include //std::string //!\file diff --git a/include/boost/interprocess/indexes/flat_map_index.hpp b/include/boost/interprocess/indexes/flat_map_index.hpp index f37daff..4307ded 100644 --- a/include/boost/interprocess/indexes/flat_map_index.hpp +++ b/include/boost/interprocess/indexes/flat_map_index.hpp @@ -10,6 +10,10 @@ #ifndef BOOST_INTERPROCESS_FLAT_MAP_INDEX_HPP #define BOOST_INTERPROCESS_FLAT_MAP_INDEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/indexes/iset_index.hpp b/include/boost/interprocess/indexes/iset_index.hpp index be28215..170e5da 100644 --- a/include/boost/interprocess/indexes/iset_index.hpp +++ b/include/boost/interprocess/indexes/iset_index.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_ISET_INDEX_HPP #define BOOST_INTERPROCESS_ISET_INDEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/indexes/iunordered_set_index.hpp b/include/boost/interprocess/indexes/iunordered_set_index.hpp index 477a521..c85c557 100644 --- a/include/boost/interprocess/indexes/iunordered_set_index.hpp +++ b/include/boost/interprocess/indexes/iunordered_set_index.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_IUNORDERED_SET_INDEX_HPP #define BOOST_INTERPROCESS_IUNORDERED_SET_INDEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/indexes/map_index.hpp b/include/boost/interprocess/indexes/map_index.hpp index ca5c7d7..a744e90 100644 --- a/include/boost/interprocess/indexes/map_index.hpp +++ b/include/boost/interprocess/indexes/map_index.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_MAP_INDEX_HPP #define BOOST_INTERPROCESS_MAP_INDEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/indexes/null_index.hpp b/include/boost/interprocess/indexes/null_index.hpp index f908575..d0e026b 100644 --- a/include/boost/interprocess/indexes/null_index.hpp +++ b/include/boost/interprocess/indexes/null_index.hpp @@ -10,6 +10,10 @@ #ifndef BOOST_INTERPROCESS_NULL_INDEX_HPP #define BOOST_INTERPROCESS_NULL_INDEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/indexes/unordered_map_index.hpp b/include/boost/interprocess/indexes/unordered_map_index.hpp index b149959..f40d970 100644 --- a/include/boost/interprocess/indexes/unordered_map_index.hpp +++ b/include/boost/interprocess/indexes/unordered_map_index.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_UNORDERED_MAP_INDEX_HPP #define BOOST_INTERPROCESS_UNORDERED_MAP_INDEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/ipc/message_queue.hpp b/include/boost/interprocess/ipc/message_queue.hpp index 8172865..0929058 100644 --- a/include/boost/interprocess/ipc/message_queue.hpp +++ b/include/boost/interprocess/ipc/message_queue.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_MESSAGE_QUEUE_HPP #define BOOST_INTERPROCESS_MESSAGE_QUEUE_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/managed_external_buffer.hpp b/include/boost/interprocess/managed_external_buffer.hpp index 77e3b73..aa0c8c9 100644 --- a/include/boost/interprocess/managed_external_buffer.hpp +++ b/include/boost/interprocess/managed_external_buffer.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include //These includes needed to fulfill default template parameters of //predeclarations in interprocess_fwd.hpp diff --git a/include/boost/interprocess/managed_heap_memory.hpp b/include/boost/interprocess/managed_heap_memory.hpp index e45839f..77ba56d 100644 --- a/include/boost/interprocess/managed_heap_memory.hpp +++ b/include/boost/interprocess/managed_heap_memory.hpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/managed_mapped_file.hpp b/include/boost/interprocess/managed_mapped_file.hpp index 25d7610..ee74c9f 100644 --- a/include/boost/interprocess/managed_mapped_file.hpp +++ b/include/boost/interprocess/managed_mapped_file.hpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include //These includes needed to fulfill default template parameters of diff --git a/include/boost/interprocess/managed_windows_shared_memory.hpp b/include/boost/interprocess/managed_windows_shared_memory.hpp index fa7494f..2298c79 100644 --- a/include/boost/interprocess/managed_windows_shared_memory.hpp +++ b/include/boost/interprocess/managed_windows_shared_memory.hpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include //These includes needed to fulfill default template parameters of //predeclarations in interprocess_fwd.hpp #include diff --git a/include/boost/interprocess/mapped_region.hpp b/include/boost/interprocess/mapped_region.hpp index dd7bf8e..24e5526 100644 --- a/include/boost/interprocess/mapped_region.hpp +++ b/include/boost/interprocess/mapped_region.hpp @@ -11,12 +11,16 @@ #ifndef BOOST_INTERPROCESS_MAPPED_REGION_HPP #define BOOST_INTERPROCESS_MAPPED_REGION_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp b/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp index b9cb328..8af256a 100644 --- a/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp +++ b/include/boost/interprocess/mem_algo/detail/mem_algo_common.hpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/segment_manager.hpp b/include/boost/interprocess/segment_manager.hpp index 98c5a8d..87c0041 100644 --- a/include/boost/interprocess/segment_manager.hpp +++ b/include/boost/interprocess/segment_manager.hpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include //std::size_t #include //char_traits diff --git a/include/boost/interprocess/shared_memory_object.hpp b/include/boost/interprocess/shared_memory_object.hpp index fe105aa..59ea343 100644 --- a/include/boost/interprocess/shared_memory_object.hpp +++ b/include/boost/interprocess/shared_memory_object.hpp @@ -11,11 +11,15 @@ #ifndef BOOST_INTERPROCESS_SHARED_MEMORY_OBJECT_HPP #define BOOST_INTERPROCESS_SHARED_MEMORY_OBJECT_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/smart_ptr/detail/sp_counted_base.hpp b/include/boost/interprocess/smart_ptr/detail/sp_counted_base.hpp index d03965c..47743c1 100644 --- a/include/boost/interprocess/smart_ptr/detail/sp_counted_base.hpp +++ b/include/boost/interprocess/smart_ptr/detail/sp_counted_base.hpp @@ -12,6 +12,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED #define BOOST_INTERPROCESS_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + # include #endif // #ifndef BOOST_INTERPROCESS_DETAIL_SP_COUNTED_BASE_HPP_INCLUDED diff --git a/include/boost/interprocess/smart_ptr/enable_shared_from_this.hpp b/include/boost/interprocess/smart_ptr/enable_shared_from_this.hpp index 0987fbd..0ca3b0a 100644 --- a/include/boost/interprocess/smart_ptr/enable_shared_from_this.hpp +++ b/include/boost/interprocess/smart_ptr/enable_shared_from_this.hpp @@ -14,6 +14,10 @@ #ifndef BOOST_INTERPROCESS_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED #define BOOST_INTERPROCESS_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/smart_ptr/intrusive_ptr.hpp b/include/boost/interprocess/smart_ptr/intrusive_ptr.hpp index 3bab96a..ff66512 100644 --- a/include/boost/interprocess/smart_ptr/intrusive_ptr.hpp +++ b/include/boost/interprocess/smart_ptr/intrusive_ptr.hpp @@ -14,6 +14,10 @@ #ifndef BOOST_INTERPROCESS_INTRUSIVE_PTR_HPP_INCLUDED #define BOOST_INTERPROCESS_INTRUSIVE_PTR_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + //!\file //!Describes an intrusive ownership pointer. diff --git a/include/boost/interprocess/smart_ptr/scoped_ptr.hpp b/include/boost/interprocess/smart_ptr/scoped_ptr.hpp index 2abab60..e628608 100644 --- a/include/boost/interprocess/smart_ptr/scoped_ptr.hpp +++ b/include/boost/interprocess/smart_ptr/scoped_ptr.hpp @@ -15,6 +15,10 @@ #ifndef BOOST_INTERPROCESS_SCOPED_PTR_HPP_INCLUDED #define BOOST_INTERPROCESS_SCOPED_PTR_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/smart_ptr/shared_ptr.hpp b/include/boost/interprocess/smart_ptr/shared_ptr.hpp index aa15e3b..fdf7235 100644 --- a/include/boost/interprocess/smart_ptr/shared_ptr.hpp +++ b/include/boost/interprocess/smart_ptr/shared_ptr.hpp @@ -16,6 +16,10 @@ #ifndef BOOST_INTERPROCESS_SHARED_PTR_HPP_INCLUDED #define BOOST_INTERPROCESS_SHARED_PTR_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + #include #include @@ -24,7 +28,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/smart_ptr/unique_ptr.hpp b/include/boost/interprocess/smart_ptr/unique_ptr.hpp index 0e8ef27..9e51c93 100644 --- a/include/boost/interprocess/smart_ptr/unique_ptr.hpp +++ b/include/boost/interprocess/smart_ptr/unique_ptr.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_UNIQUE_PTR_HPP_INCLUDED #define BOOST_INTERPROCESS_UNIQUE_PTR_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/smart_ptr/weak_ptr.hpp b/include/boost/interprocess/smart_ptr/weak_ptr.hpp index f207a43..e4c47cb 100644 --- a/include/boost/interprocess/smart_ptr/weak_ptr.hpp +++ b/include/boost/interprocess/smart_ptr/weak_ptr.hpp @@ -15,6 +15,10 @@ #ifndef BOOST_INTERPROCESS_WEAK_PTR_HPP_INCLUDED #define BOOST_INTERPROCESS_WEAK_PTR_HPP_INCLUDED +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/streams/bufferstream.hpp b/include/boost/interprocess/streams/bufferstream.hpp index 83784f9..cb3e637 100644 --- a/include/boost/interprocess/streams/bufferstream.hpp +++ b/include/boost/interprocess/streams/bufferstream.hpp @@ -35,6 +35,10 @@ #ifndef BOOST_INTERPROCESS_BUFFERSTREAM_HPP #define BOOST_INTERPROCESS_BUFFERSTREAM_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/streams/vectorstream.hpp b/include/boost/interprocess/streams/vectorstream.hpp index a81fcc9..94a7572 100644 --- a/include/boost/interprocess/streams/vectorstream.hpp +++ b/include/boost/interprocess/streams/vectorstream.hpp @@ -36,6 +36,10 @@ #ifndef BOOST_INTERPROCESS_VECTORSTREAM_HPP #define BOOST_INTERPROCESS_VECTORSTREAM_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/sync/detail/common_algorithms.hpp b/include/boost/interprocess/sync/detail/common_algorithms.hpp index 6d26db8..76d1c5c 100644 --- a/include/boost/interprocess/sync/detail/common_algorithms.hpp +++ b/include/boost/interprocess/sync/detail/common_algorithms.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_SYNC_DETAIL_COMMON_ALGORITHMS_HPP #define BOOST_INTERPROCESS_SYNC_DETAIL_COMMON_ALGORITHMS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp b/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp index 5d7e7fd..be93af7 100644 --- a/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp +++ b/include/boost/interprocess/sync/detail/condition_algorithm_8a.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_CONDITION_ALGORITHM_8A_HPP #define BOOST_INTERPROCESS_DETAIL_CONDITION_ALGORITHM_8A_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/sync/detail/condition_any_algorithm.hpp b/include/boost/interprocess/sync/detail/condition_any_algorithm.hpp index b0371b8..5819acf 100644 --- a/include/boost/interprocess/sync/detail/condition_any_algorithm.hpp +++ b/include/boost/interprocess/sync/detail/condition_any_algorithm.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_CONDITION_ANY_ALGORITHM_HPP #define BOOST_INTERPROCESS_DETAIL_CONDITION_ANY_ALGORITHM_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/sync/detail/locks.hpp b/include/boost/interprocess/sync/detail/locks.hpp index ddca850..0565200 100644 --- a/include/boost/interprocess/sync/detail/locks.hpp +++ b/include/boost/interprocess/sync/detail/locks.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_LOCKS_HPP #define BOOST_INTERPROCESS_DETAIL_LOCKS_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/sync/file_lock.hpp b/include/boost/interprocess/sync/file_lock.hpp index c819f1e..e8d3903 100644 --- a/include/boost/interprocess/sync/file_lock.hpp +++ b/include/boost/interprocess/sync/file_lock.hpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include //!\file //!Describes a class that wraps file locking capabilities. diff --git a/include/boost/interprocess/sync/posix/ptime_to_timespec.hpp b/include/boost/interprocess/sync/posix/ptime_to_timespec.hpp index 79eb7dc..65993de 100644 --- a/include/boost/interprocess/sync/posix/ptime_to_timespec.hpp +++ b/include/boost/interprocess/sync/posix/ptime_to_timespec.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_PTIME_TO_TIMESPEC_HPP #define BOOST_INTERPROCESS_DETAIL_PTIME_TO_TIMESPEC_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include namespace boost { diff --git a/include/boost/interprocess/sync/posix/recursive_mutex.hpp b/include/boost/interprocess/sync/posix/recursive_mutex.hpp index d5bda34..ccb50da 100644 --- a/include/boost/interprocess/sync/posix/recursive_mutex.hpp +++ b/include/boost/interprocess/sync/posix/recursive_mutex.hpp @@ -27,6 +27,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_POSIX_RECURSIVE_MUTEX_HPP #define BOOST_INTERPROCESS_DETAIL_POSIX_RECURSIVE_MUTEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include diff --git a/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp b/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp index b4fd79c..33f55fa 100644 --- a/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp +++ b/include/boost/interprocess/sync/posix/semaphore_wrapper.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_POSIX_SEMAPHORE_WRAPPER_HPP #define BOOST_INTERPROCESS_POSIX_SEMAPHORE_WRAPPER_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/sync/scoped_lock.hpp b/include/boost/interprocess/sync/scoped_lock.hpp index cb4a629..c095530 100644 --- a/include/boost/interprocess/sync/scoped_lock.hpp +++ b/include/boost/interprocess/sync/scoped_lock.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include //!\file diff --git a/include/boost/interprocess/sync/sharable_lock.hpp b/include/boost/interprocess/sync/sharable_lock.hpp index 462bb84..efbee6d 100644 --- a/include/boost/interprocess/sync/sharable_lock.hpp +++ b/include/boost/interprocess/sync/sharable_lock.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include //!\file diff --git a/include/boost/interprocess/sync/shm/named_creation_functor.hpp b/include/boost/interprocess/sync/shm/named_creation_functor.hpp index cdfff99..234e072 100644 --- a/include/boost/interprocess/sync/shm/named_creation_functor.hpp +++ b/include/boost/interprocess/sync/shm/named_creation_functor.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_SYNC_NAMED_CREATION_FUNCTOR_HPP #define BOOST_INTERPROCESS_SYNC_NAMED_CREATION_FUNCTOR_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/sync/spin/condition.hpp b/include/boost/interprocess/sync/spin/condition.hpp index 0d75a94..e587c32 100644 --- a/include/boost/interprocess/sync/spin/condition.hpp +++ b/include/boost/interprocess/sync/spin/condition.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_SPIN_CONDITION_HPP #define BOOST_INTERPROCESS_DETAIL_SPIN_CONDITION_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include @@ -20,7 +24,7 @@ #include #include #include -#include +#include #include namespace boost { diff --git a/include/boost/interprocess/sync/spin/interprocess_barrier.hpp b/include/boost/interprocess/sync/spin/interprocess_barrier.hpp index f8ee099..5f88dd4 100644 --- a/include/boost/interprocess/sync/spin/interprocess_barrier.hpp +++ b/include/boost/interprocess/sync/spin/interprocess_barrier.hpp @@ -12,6 +12,10 @@ #include #include +#if defined(_MSC_VER) +# pragma once +#endif + namespace boost { namespace interprocess { diff --git a/include/boost/interprocess/sync/upgradable_lock.hpp b/include/boost/interprocess/sync/upgradable_lock.hpp index 7a84a32..646019b 100644 --- a/include/boost/interprocess/sync/upgradable_lock.hpp +++ b/include/boost/interprocess/sync/upgradable_lock.hpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include //!\file diff --git a/include/boost/interprocess/sync/windows/condition.hpp b/include/boost/interprocess/sync/windows/condition.hpp index f880e4f..d5b77c7 100644 --- a/include/boost/interprocess/sync/windows/condition.hpp +++ b/include/boost/interprocess/sync/windows/condition.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_DETAIL_WINDOWS_CONDITION_HPP #define BOOST_INTERPROCESS_DETAIL_WINDOWS_CONDITION_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/sync/xsi/advanced_xsi_semaphore.hpp b/include/boost/interprocess/sync/xsi/advanced_xsi_semaphore.hpp index a0c3a91..b69cfbf 100644 --- a/include/boost/interprocess/sync/xsi/advanced_xsi_semaphore.hpp +++ b/include/boost/interprocess/sync/xsi/advanced_xsi_semaphore.hpp @@ -30,6 +30,10 @@ #ifndef BOOST_INTERPROCESS_SYNC_XSI_ADVANCED_XSI_SEMAPHORE_HPP #define BOOST_INTERPROCESS_SYNC_XSI_ADVANCED_XSI_SEMAPHORE_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/sync/xsi/simple_xsi_semaphore.hpp b/include/boost/interprocess/sync/xsi/simple_xsi_semaphore.hpp index deb429a..69ad34c 100644 --- a/include/boost/interprocess/sync/xsi/simple_xsi_semaphore.hpp +++ b/include/boost/interprocess/sync/xsi/simple_xsi_semaphore.hpp @@ -10,6 +10,10 @@ #ifndef BOOST_INTERPROCESS_SYNC_XSI_SIMPLE_XSI_SEMAPHORE_HPP #define BOOST_INTERPROCESS_SYNC_XSI_SIMPLE_XSI_SEMAPHORE_HPP +#if defined(_MSC_VER) +# pragma once +#endif + /* * Provide an simpler and easier to understand interface to the System V * semaphore system calls. There are 7 routines available to the user: diff --git a/include/boost/interprocess/sync/xsi/xsi_named_mutex.hpp b/include/boost/interprocess/sync/xsi/xsi_named_mutex.hpp index 142c125..1c4ee78 100644 --- a/include/boost/interprocess/sync/xsi/xsi_named_mutex.hpp +++ b/include/boost/interprocess/sync/xsi/xsi_named_mutex.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_XSI_XSI_NAMED_MUTEX_HPP #define BOOST_INTERPROCESS_XSI_XSI_NAMED_MUTEX_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include @@ -18,7 +22,7 @@ #error "This header can't be used in Windows operating systems" #endif -#include +#include #include #include #include diff --git a/include/boost/interprocess/windows_shared_memory.hpp b/include/boost/interprocess/windows_shared_memory.hpp index 088c0bb..5898b4b 100644 --- a/include/boost/interprocess/windows_shared_memory.hpp +++ b/include/boost/interprocess/windows_shared_memory.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_WINDOWS_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_WINDOWS_SHARED_MEMORY_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include diff --git a/include/boost/interprocess/xsi_key.hpp b/include/boost/interprocess/xsi_key.hpp index 7131cef..38e990a 100644 --- a/include/boost/interprocess/xsi_key.hpp +++ b/include/boost/interprocess/xsi_key.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_XSI_KEY_HPP #define BOOST_INTERPROCESS_XSI_KEY_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include @@ -22,7 +26,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/interprocess/xsi_shared_memory.hpp b/include/boost/interprocess/xsi_shared_memory.hpp index 695013f..3451717 100644 --- a/include/boost/interprocess/xsi_shared_memory.hpp +++ b/include/boost/interprocess/xsi_shared_memory.hpp @@ -11,6 +11,10 @@ #ifndef BOOST_INTERPROCESS_XSI_SHARED_MEMORY_HPP #define BOOST_INTERPROCESS_XSI_SHARED_MEMORY_HPP +#if defined(_MSC_VER) +# pragma once +#endif + #include #include #include @@ -22,7 +26,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/test/deque_test.cpp b/test/deque_test.cpp index 8a22498..6d2e36d 100644 --- a/test/deque_test.cpp +++ b/test/deque_test.cpp @@ -26,7 +26,7 @@ #include #include "allocator_v1.hpp" #include -#include +#include #include #include #include diff --git a/test/emplace_test.hpp b/test/emplace_test.hpp index 1ba168a..f1ce886 100644 --- a/test/emplace_test.hpp +++ b/test/emplace_test.hpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include diff --git a/test/list_test.hpp b/test/list_test.hpp index 2e54783..a7c4063 100644 --- a/test/list_test.hpp +++ b/test/list_test.hpp @@ -18,7 +18,7 @@ #include #include #include "print_container.hpp" -#include +#include #include #include "get_process_id_name.hpp" diff --git a/test/movable_int.hpp b/test/movable_int.hpp index 2f6d854..3890a46 100644 --- a/test/movable_int.hpp +++ b/test/movable_int.hpp @@ -13,7 +13,7 @@ #include #include -#include +#include namespace boost { namespace interprocess { diff --git a/test/set_test.hpp b/test/set_test.hpp index d30c7c5..4fecfc0 100644 --- a/test/set_test.hpp +++ b/test/set_test.hpp @@ -17,7 +17,7 @@ #include #include #include "print_container.hpp" -#include +#include #include #include "get_process_id_name.hpp" diff --git a/test/vector_test.hpp b/test/vector_test.hpp index 04642c1..1bddbb5 100644 --- a/test/vector_test.hpp +++ b/test/vector_test.hpp @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include "print_container.hpp" #include "check_equal_containers.hpp"