Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
81ff974
[pfr_implicit_explicit] Docs [skip ci]
denzor200 Dec 24, 2022
45d9be9
[pfr_implicit_explicit] Add important notes for the docs [skip ci]
denzor200 Dec 30, 2022
d002a70
[pfr_implicit_explicit] Add Boost PFR implicit and explicit adapters
denzor200 Dec 30, 2022
85be88d
[pfr_implicit_explicit] Add regular test for Boost PFR adapter
denzor200 Dec 30, 2022
e26c017
[pfr_implicit_explicit] Add test for Boost PFR explicit adapter && fi…
denzor200 Dec 30, 2022
e5b2344
[pfr_implicit_explicit] Just more tests
denzor200 Dec 30, 2022
bc1415e
[pfr_implicit_explicit] Add pfr dependency
denzor200 Dec 30, 2022
cd54084
[pfr_implicit_explicit] Fix warning static_assert with no message
denzor200 Dec 30, 2022
aed0503
[pfr_implicit_explicit] Force pfr implicit reflection in cxx14 mode
denzor200 Jan 11, 2023
a7bb2c7
[pfr_implicit_explicit] Update copyright years
denzor200 Jan 15, 2023
40dfa11
[pfr_implicit_explicit] Fix for 'config.hpp' && Comment for 'adapted.…
denzor200 Jan 15, 2023
e016b09
[pfr_implicit_explicit] First successful step for regression tests
denzor200 Jan 22, 2023
7307754
[pfr_implicit_explicit] Regression tests for 'sequence' group
denzor200 Jan 22, 2023
ff05040
[pfr_implicit_explicit] Rest of regression tests
denzor200 Jan 22, 2023
aff77c4
[pfr_implicit_explicit] Fix for old compilers building
denzor200 Jan 23, 2023
01defe1
[pfr_implicit_explicit] Fix for C++11 build
denzor200 Jan 24, 2023
4686805
[pfr_implicit_explicit] Fix for clang-3.5 build
denzor200 Jan 26, 2023
4906f32
[pfr_implicit_explicit] One with_or_without_fallback.hpp
denzor200 Jan 27, 2023
403ae44
[pfr_implicit_explicit] Force macroes documented as acceptable in old…
denzor200 Jan 27, 2023
c4547ce
[pfr_implicit_explicit] Diagnostics improvement
denzor200 Jan 27, 2023
073e9b2
[pfr_implicit_explicit] Tests improved a lot
denzor200 Jan 28, 2023
62545d4
[pfr_implicit_explicit] Fix typename cannot be used outside a templat…
denzor200 Jan 28, 2023
8f0ab4b
[pfr_implicit_explicit] Fix invalid application of 'sizeof'
denzor200 Jan 28, 2023
aff0c59
[pfr_implicit_explicit] Lot of fixes
denzor200 Jan 28, 2023
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
7 changes: 4 additions & 3 deletions test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ../../config/checks/config : requires ;
# import rules from the boost fusion test
import ../util/test :
test-bfl-run_with_and_without_fallback
test-bfl-compile_with_and_without_fallback
;

if [ os.environ CI ]
Expand Down Expand Up @@ -128,7 +129,7 @@ project
[ test-bfl-run_with_and_without_fallback sequence/deque_copy.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/deque_iterator.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/deque_hash.cpp ]
[ compile sequence/deque_is_constructible.cpp ]
[ test-bfl-compile_with_and_without_fallback sequence/deque_is_constructible.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/deque_make.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/deque_misc.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/deque_move.cpp : :
Expand Down Expand Up @@ -261,10 +262,10 @@ project
: [ requires cxx11_variadic_templates cxx11_hdr_tuple ] ]
[ test-bfl-run_with_and_without_fallback sequence/ref_vector.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/flatten_view.cpp ]
[ compile sequence/github-159.cpp ]
[ test-bfl-compile_with_and_without_fallback sequence/github-159.cpp ]
[ test-bfl-run_with_and_without_fallback sequence/github-176.cpp ]

[ compile sequence/size.cpp ]
[ test-bfl-compile_with_and_without_fallback sequence/size.cpp ]

[ run functional/fused.cpp ]
[ run functional/fused_function_object.cpp ]
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_adt_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_adt{};
BOOST_FUSION_ADAPT_ADT(empty_adt,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_adt_named.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
class point
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_adt_named_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_adt{};
BOOST_FUSION_ADAPT_ADT_NAMED(::empty_adt,empty_adt,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_adt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_adt_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_adt{};
BOOST_FUSION_ADAPT_ASSOC_ADT(empty_adt,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_adt_named.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_adt_named_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_adt{};
BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED(::empty_adt,empty_adt,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_struct_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_struct{};
BOOST_FUSION_ADAPT_ASSOC_STRUCT(empty_struct,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_struct_named.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_struct_named_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_struct{};
BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED(::empty_struct,empty_struct,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_tpl_adt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_tpl_adt_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

template <typename T>
class empty_adt{};
BOOST_FUSION_ADAPT_ASSOC_TPL_ADT((T), (empty_adt)(T),)
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_tpl_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_assoc_tpl_struct_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

template <typename T>
class empty_struct{};
BOOST_FUSION_ADAPT_ASSOC_TPL_STRUCT((T), (empty_struct)(T),)
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace namespaced_type {
typedef int integer;
}
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_struct_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_struct{};
BOOST_FUSION_ADAPT_STRUCT(empty_struct,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_struct_named.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct point
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_struct_named_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

class empty_struct{};
BOOST_FUSION_ADAPT_STRUCT_NAMED(::empty_struct,empty_struct,)

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_tpl_adt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
template<typename X, typename Y>
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_tpl_adt_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

template <typename T>
class empty_adt{};
BOOST_FUSION_ADAPT_TPL_ADT((T), (empty_adt)(T),)
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_tpl_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace ns
{
template<typename X, typename Y>
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adapt_tpl_struct_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <boost/mpl/assert.hpp>
#include <iostream>

#include "with_or_without_fallback.hpp"

template <typename T>
class empty_struct{};
BOOST_FUSION_ADAPT_TPL_STRUCT((T), (empty_struct)(T),)
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/adt_attribute_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

namespace fusion=boost::fusion;

template<typename Name, typename Age>
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#include <boost/mpl/assert.hpp>

#include "with_or_without_fallback.hpp"

int main()
{
using namespace boost::fusion;
Expand Down
1 change: 1 addition & 0 deletions test/sequence/as_deque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <string>

#include "with_or_without_fallback.hpp"

int main() {
using namespace boost::fusion;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/as_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <boost/fusion/sequence/io/out.hpp>
#include <boost/mpl/vector_c.hpp>

#include "with_or_without_fallback.hpp"

int
main()
{
Expand Down
5 changes: 4 additions & 1 deletion test/sequence/as_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <boost/fusion/sequence/io/out.hpp>
#include <boost/fusion/support/pair.hpp>

#include "with_or_without_fallback.hpp"

int
main()
{
Expand All @@ -29,7 +31,8 @@ main()

{
vector0<> empty;
std::cout << as_map(make_list(make_pair<int>('X'), make_pair<double>("Men"))) << std::endl;
// Conversion for std::string need to prevent 'error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [4]’)'
std::cout << as_map(make_list(make_pair<int>('X'), make_pair<double>(std::string("Men")))) << std::endl;
std::cout << as_map(push_back(empty, make_pair<int>(999))) << std::endl;
}

Expand Down
2 changes: 2 additions & 0 deletions test/sequence/as_map_assoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <boost/fusion/sequence/io/out.hpp>
#include <boost/fusion/support/pair.hpp>

#include "with_or_without_fallback.hpp"

namespace ns
{
struct x_member;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/as_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <boost/fusion/sequence/io/out.hpp>
#include <boost/mpl/vector_c.hpp>

#include "with_or_without_fallback.hpp"

int
main()
{
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/as_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <boost/mpl/vector_c.hpp>
#include <string>

#include "with_or_without_fallback.hpp"

int
main()
{
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/back_extended_deque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <boost/mpl/assert.hpp>
#include <boost/type_traits/is_same.hpp>

#include "with_or_without_fallback.hpp"

int main()
{
using namespace boost::fusion;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/boost_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <boost/mpl/assert.hpp>

#include "with_or_without_fallback.hpp"

int main()
{
using namespace boost::fusion;
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/boost_tuple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <iostream>
#include <string>

#include "with_or_without_fallback.hpp"

int
main()
{
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/boost_tuple_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include <boost/fusion/adapted/boost_tuple.hpp>

#include "with_or_without_fallback.hpp"

#define FUSION_SEQUENCE boost::tuple
#define FUSION_TRAVERSAL_TAG forward_traversal_tag
#define FUSION_NO_PRIOR
Expand Down
5 changes: 5 additions & 0 deletions test/sequence/comparison.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
==============================================================================*/
#include <boost/detail/lightweight_test.hpp>
#include <boost/fusion/sequence/comparison.hpp>
#include <boost/fusion/adapted/boost_pfr/force.hpp>

// TODO: force.hpp should be documented and tested that it won't adapt pfr implicitly or explicitly
Comment thread
denzor200 marked this conversation as resolved.
Outdated

struct not_a_fusion_container {};
BOOST_FUSION_FORCE_PFR_NONREFLECTABLE(not_a_fusion_container)

template <typename T>
inline bool operator==(not_a_fusion_container, T const&) { return true; }
template <typename T>
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/cons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <boost/type_traits/is_same.hpp>
#include <boost/mpl/lambda.hpp>

#include "with_or_without_fallback.hpp"

int
main()
{
Expand Down
2 changes: 2 additions & 0 deletions test/sequence/convert_boost_tuple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <boost/tuple/tuple.hpp>
#include <boost/fusion/include/boost_tuple.hpp>

#include "with_or_without_fallback.hpp"

#define FUSION_SEQUENCE boost::tuples::tuple
#include "convert.hpp"

2 changes: 2 additions & 0 deletions test/sequence/convert_deque.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include <boost/fusion/include/deque.hpp>

#include "with_or_without_fallback.hpp"

#define FUSION_SEQUENCE boost::fusion::deque
#include "convert.hpp"

Loading