From 47070610d0d44a99ebd266e4d856e902a9c32a4a Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Wed, 14 Mar 2018 15:15:33 +0900 Subject: [PATCH] Remove unnecessary user defined ctor there is no reasons defining those probably. This change allows to be vector trivially copyable iff all elements are trivially copyable, i.e. following static assert now passes. ```cpp static_assert(std::is_trivially_copyable>{}); ``` --- .../boost/fusion/container/vector/vector.hpp | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/include/boost/fusion/container/vector/vector.hpp b/include/boost/fusion/container/vector/vector.hpp index 4993e2eb..92642ec7 100644 --- a/include/boost/fusion/container/vector/vector.hpp +++ b/include/boost/fusion/container/vector/vector.hpp @@ -131,32 +131,6 @@ namespace boost { namespace fusion : elem() // value-initialized explicitly {} - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - store(store const& rhs) - : elem(rhs.elem) - {} - - BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED - store& - operator=(store const& rhs) - { - elem = rhs.elem; - return *this; - } - - BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED - store(store&& rhs) - : elem(static_cast(rhs.elem)) - {} - - BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED - store& - operator=(store&& rhs) - { - elem = static_cast(rhs.elem); - return *this; - } - template < typename U , typename = typename boost::disable_if<