From 36c8f81e42ca99c2a8a509d03ab49ce854f02df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 10 Jan 2015 10:58:08 +0100 Subject: [PATCH] Add placement new operator to avoid unnecessarily. --- include/boost/container/detail/placement_new.hpp | 7 +++---- test/vector_test.cpp | 11 ----------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/include/boost/container/detail/placement_new.hpp b/include/boost/container/detail/placement_new.hpp index 2489d8a..2ffb8f9 100644 --- a/include/boost/container/detail/placement_new.hpp +++ b/include/boost/container/detail/placement_new.hpp @@ -1,6 +1,8 @@ +#ifndef BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP +#define BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP /////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost +// (C) Copyright Ion Gaztanaga 2014-2015. 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) // @@ -8,9 +10,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#ifndef BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP -#define BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP - #if defined(_MSC_VER) # pragma once #endif diff --git a/test/vector_test.cpp b/test/vector_test.cpp index e39d58d..0c62cf2 100644 --- a/test/vector_test.cpp +++ b/test/vector_test.cpp @@ -250,14 +250,3 @@ int main() return 0; } - -/* - -#include -//#include -int main() -{ - boost::container::vector a; - return 0; -} -*/