Use build time configuration

This commit is contained in:
Kohei Takahashi
2018-01-29 12:03:19 +09:00
parent 671f22b013
commit 540ea0ef0c
12 changed files with 42 additions and 131 deletions

View File

@ -42,7 +42,8 @@ project
[ run algorithm/insert.cpp ] [ run algorithm/insert.cpp ]
[ run algorithm/insert_range.cpp ] [ run algorithm/insert_range.cpp ]
[ run algorithm/iter_fold.cpp ] [ run algorithm/iter_fold.cpp ]
[ run algorithm/move.cpp ] [ run algorithm/move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run algorithm/none.cpp ] [ run algorithm/none.cpp ]
[ run algorithm/pop_back.cpp ] [ run algorithm/pop_back.cpp ]
[ run algorithm/pop_front.cpp ] [ run algorithm/pop_front.cpp ]
@ -106,7 +107,8 @@ project
[ compile sequence/deque_is_constructible.cpp ] [ compile sequence/deque_is_constructible.cpp ]
[ run sequence/deque_make.cpp ] [ run sequence/deque_make.cpp ]
[ run sequence/deque_misc.cpp ] [ run sequence/deque_misc.cpp ]
[ run sequence/deque_move.cpp ] [ run sequence/deque_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/deque_mutate.cpp ] [ run sequence/deque_mutate.cpp ]
[ run sequence/deque_nest.cpp ] [ run sequence/deque_nest.cpp ]
[ run sequence/deque_tie.cpp ] [ run sequence/deque_tie.cpp ]
@ -120,7 +122,8 @@ project
[ run sequence/map_construction.cpp ] [ run sequence/map_construction.cpp ]
[ run sequence/map_copy.cpp ] [ run sequence/map_copy.cpp ]
[ run sequence/map_misc.cpp ] [ run sequence/map_misc.cpp ]
[ run sequence/map_move.cpp ] [ run sequence/map_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/map_mutate.cpp ] [ run sequence/map_mutate.cpp ]
[ run sequence/map_tie.cpp ] [ run sequence/map_tie.cpp ]
[ run sequence/nil.cpp ] [ run sequence/nil.cpp ]
@ -159,7 +162,8 @@ project
[ run sequence/vector_iterator.cpp ] [ run sequence/vector_iterator.cpp ]
[ run sequence/vector_make.cpp ] [ run sequence/vector_make.cpp ]
[ run sequence/vector_misc.cpp ] [ run sequence/vector_misc.cpp ]
[ run sequence/vector_move.cpp ] [ run sequence/vector_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/vector_mutate.cpp ] [ run sequence/vector_mutate.cpp ]
[ run sequence/vector_n.cpp ] [ run sequence/vector_n.cpp ]
[ run sequence/vector_nest.cpp ] [ run sequence/vector_nest.cpp ]
@ -204,22 +208,28 @@ project
[ run sequence/adt_attribute_proxy.cpp ] [ run sequence/adt_attribute_proxy.cpp ]
[ run sequence/define_struct.cpp ] [ run sequence/define_struct.cpp ]
[ run sequence/define_struct_empty.cpp ] [ run sequence/define_struct_empty.cpp ]
[ run sequence/define_struct_move.cpp ] [ run sequence/define_struct_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/define_struct_inline.cpp ] [ run sequence/define_struct_inline.cpp ]
[ run sequence/define_struct_inline_empty.cpp ] [ run sequence/define_struct_inline_empty.cpp ]
[ run sequence/define_struct_inline_move.cpp ] [ run sequence/define_struct_inline_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/define_assoc_struct.cpp ] [ run sequence/define_assoc_struct.cpp ]
[ run sequence/define_assoc_struct_empty.cpp ] [ run sequence/define_assoc_struct_empty.cpp ]
[ run sequence/define_assoc_struct_move.cpp ] [ run sequence/define_assoc_struct_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/define_tpl_struct.cpp ] [ run sequence/define_tpl_struct.cpp ]
[ run sequence/define_tpl_struct_empty.cpp ] [ run sequence/define_tpl_struct_empty.cpp ]
[ run sequence/define_tpl_struct_move.cpp ] [ run sequence/define_tpl_struct_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/define_tpl_struct_inline.cpp ] [ run sequence/define_tpl_struct_inline.cpp ]
[ run sequence/define_tpl_struct_inline_empty.cpp ] [ run sequence/define_tpl_struct_inline_empty.cpp ]
[ run sequence/define_tpl_struct_inline_move.cpp ] [ run sequence/define_tpl_struct_inline_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/define_assoc_tpl_struct.cpp ] [ run sequence/define_assoc_tpl_struct.cpp ]
[ run sequence/define_assoc_tpl_struct_empty.cpp ] [ run sequence/define_assoc_tpl_struct_empty.cpp ]
[ run sequence/define_assoc_tpl_struct_move.cpp ] [ run sequence/define_assoc_tpl_struct_move.cpp : :
: [ requires cxx11_rvalue_references ] ]
[ run sequence/std_tuple.cpp : : [ run sequence/std_tuple.cpp : :
: [ requires cxx11_variadic_templates cxx11_hdr_tuple ] ] : [ requires cxx11_variadic_templates cxx11_hdr_tuple ] ]
[ run sequence/std_tuple_iterator.cpp : : [ run sequence/std_tuple_iterator.cpp : :
@ -250,8 +260,10 @@ project
[ compile support/pair_set.cpp ] [ compile support/pair_set.cpp ]
[ compile support/pair_vector.cpp ] [ compile support/pair_vector.cpp ]
[ compile support/pair_nest.cpp ] [ compile support/pair_nest.cpp ]
[ compile support/index_sequence.cpp ] [ compile support/index_sequence.cpp
[ compile support/and.cpp ] : [ requires cxx11_variadic_templates ] ]
[ compile support/and.cpp
: [ requires cxx11_variadic_templates ] ]
# [ compile-fail xxx.cpp ] # [ compile-fail xxx.cpp ]

View File

@ -1,13 +1,9 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2014 Kohei Takahashi Copyright (c) 2014,2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <boost/fusion/container/vector/vector.hpp> #include <boost/fusion/container/vector/vector.hpp>
#include <boost/fusion/container/list/list.hpp> #include <boost/fusion/container/list/list.hpp>
@ -29,12 +25,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#else
int main()
{
// no thing to do
}
#endif

View File

@ -1,13 +1,9 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2016 Kohei Takahashi Copyright (c) 2016,2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/adapted/struct/define_assoc_struct.hpp> #include <boost/fusion/adapted/struct/define_assoc_struct.hpp>
#include <utility> #include <utility>
@ -69,10 +65,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#else
int main()
{
}
#endif

View File

@ -4,10 +4,6 @@
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/adapted/struct/define_struct_inline.hpp> #include <boost/fusion/adapted/struct/define_struct_inline.hpp>
#include <utility> #include <utility>
@ -75,10 +71,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#else
int main()
{
}
#endif

View File

@ -1,13 +1,9 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2016 Kohei Takahashi Copyright (c) 2016,2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/adapted/struct/define_struct.hpp> #include <boost/fusion/adapted/struct/define_struct.hpp>
#include <utility> #include <utility>
@ -68,10 +64,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#else
int main()
{
}
#endif

View File

@ -4,10 +4,6 @@
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/adapted/struct/define_struct_inline.hpp> #include <boost/fusion/adapted/struct/define_struct_inline.hpp>
#include <utility> #include <utility>
@ -75,10 +71,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#else
int main()
{
}
#endif

View File

@ -1,13 +1,9 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2016 Kohei Takahashi Copyright (c) 2016,2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp>
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/adapted/struct/define_struct.hpp> #include <boost/fusion/adapted/struct/define_struct.hpp>
#include <utility> #include <utility>
@ -68,10 +64,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#else
int main()
{
}
#endif

View File

@ -1,16 +1,11 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2012 Joel de Guzman Copyright (c) 2012 Joel de Guzman
Copyright (c) 2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES // $$$ JDG temp $$$ #define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES // $$$ JDG temp $$$
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include <boost/fusion/container/deque/deque.hpp> #include <boost/fusion/container/deque/deque.hpp>
#define FUSION_SEQUENCE boost::fusion::deque<std::vector<x>> #define FUSION_SEQUENCE boost::fusion::deque<std::vector<x>>
@ -18,16 +13,9 @@
#include "move.hpp" #include "move.hpp"
#else int main()
#include <boost/detail/lightweight_test.hpp>
#endif
int
main()
{ {
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
test(); test();
#endif
return boost::report_errors(); return boost::report_errors();
} }

View File

@ -1,15 +1,11 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2012 Joel de Guzman Copyright (c) 2012 Joel de Guzman
Copyright (c) 2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES // $$$ JDG temp $$$ #define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES // $$$ JDG temp $$$
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include <boost/fusion/container/map/map.hpp> #include <boost/fusion/container/map/map.hpp>
struct k1 {}; struct k1 {};
@ -23,16 +19,9 @@ struct k2 {};
#include "move.hpp" #include "move.hpp"
#else int main()
#include <boost/detail/lightweight_test.hpp>
#endif
int
main()
{ {
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
test(); test();
#endif
return boost::report_errors(); return boost::report_errors();
} }

View File

@ -1,15 +1,11 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2012 Joel de Guzman Copyright (c) 2012 Joel de Guzman
Copyright (c) 2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES // $$$ JDG temp $$$ #define BOOST_FUSION_DONT_USE_PREPROCESSED_FILES // $$$ JDG temp $$$
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include <boost/fusion/container/vector/vector.hpp> #include <boost/fusion/container/vector/vector.hpp>
#define FUSION_SEQUENCE boost::fusion::vector<std::vector<x>> #define FUSION_SEQUENCE boost::fusion::vector<std::vector<x>>
@ -17,16 +13,9 @@
#include "move.hpp" #include "move.hpp"
#else int main()
#include <boost/detail/lightweight_test.hpp>
#endif
int
main()
{ {
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
test(); test();
#endif
return boost::report_errors(); return boost::report_errors();
} }

View File

@ -1,12 +1,15 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2016 Lee Clagett Copyright (c) 2016 Lee Clagett
Copyright (c) 2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp> #include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) #ifdef BOOST_NO_CXX11_VARIADIC_TEMPLATES
# error "does not meet requirements"
#endif
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/support/detail/and.hpp> #include <boost/fusion/support/detail/and.hpp>
@ -29,5 +32,3 @@ int main() {
return boost::report_errors(); return boost::report_errors();
} }
#endif

View File

@ -1,12 +1,14 @@
/*============================================================================= /*=============================================================================
Copyright (c) 2015 Kohei Takahashi Copyright (c) 2015,2018 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying 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) file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/ ==============================================================================*/
#include <boost/config.hpp> #include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) #ifdef BOOST_NO_CXX11_VARIADIC_TEMPLATES
# error "does not meet requirements"
#endif
#include <boost/fusion/support/detail/index_sequence.hpp> #include <boost/fusion/support/detail/index_sequence.hpp>
#include <boost/mpl/assert.hpp> #include <boost/mpl/assert.hpp>
@ -28,5 +30,3 @@ BOOST_MPL_ASSERT((boost::is_same<detail::make_index_sequence<15>::type, detail::
BOOST_MPL_ASSERT((boost::is_same<detail::make_index_sequence<16>::type, detail::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15> >)); BOOST_MPL_ASSERT((boost::is_same<detail::make_index_sequence<16>::type, detail::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15> >));
BOOST_MPL_ASSERT((boost::is_same<detail::make_index_sequence<17>::type, detail::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16> >)); BOOST_MPL_ASSERT((boost::is_same<detail::make_index_sequence<17>::type, detail::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16> >));
#endif