Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/boost/circular_buffer/space_optimized.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

// Include the main header before this file's guard so it can include this file
// while the internal configuration macros are still defined.
#if !defined(BOOST_CIRCULAR_BUFFER_HPP)
#include <boost/circular_buffer.hpp>
#endif

#if !defined(BOOST_CIRCULAR_BUFFER_SPACE_OPTIMIZED_HPP)
#define BOOST_CIRCULAR_BUFFER_SPACE_OPTIMIZED_HPP

Expand Down
3 changes: 3 additions & 0 deletions test/space_optimized_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

// Include the adaptor header first to check that it is self-contained.
#define BOOST_CB_TEST
#include <boost/circular_buffer/space_optimized.hpp>
#include "test.hpp"

#define CB_CONTAINER circular_buffer_space_optimized
Expand Down