From f5f9ca4c717c4e894b5130481036db68a97cb51b Mon Sep 17 00:00:00 2001 From: William Snyder Date: Fri, 15 Nov 2019 09:16:30 -0500 Subject: [PATCH] Fix compile error with container.hpp when FOONATHAN_MEMORY_NO_NODE_SIZE is set --- include/foonathan/memory/container.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/foonathan/memory/container.hpp b/include/foonathan/memory/container.hpp index ac705359..0cf7111d 100644 --- a/include/foonathan/memory/container.hpp +++ b/include/foonathan/memory/container.hpp @@ -368,6 +368,7 @@ namespace foonathan /// @} #endif +#if !defined(FOONATHAN_MEMORY_NO_NODE_SIZE) /// The node size required by \ref allocate_shared. /// \note This is similar to \ref shared_ptr_node_size but takes a /// \concept{concept_rawallocator,RawAllocator} instead. @@ -376,6 +377,7 @@ namespace foonathan : shared_ptr_node_size> { }; +#endif } // namespace memory } // namespace foonathan