Macros for declare cargo fields. More...
#include "cargo/fields.hpp"
#include "cargo/exception.hpp"
#include <utility>
#include <boost/any.hpp>
Go to the source code of this file.
Classes | |
class | DisableMoveAnyWrapper |
Macros | |
#define | CARGO_DECLARE_UNION(...) |
Use this macro to declare and register cargo fields. More... | |
#define | GENERATE_CODE(MACRO,...) BOOST_PP_LIST_FOR_EACH(MACRO, _, BOOST_PP_VARIADIC_TO_LIST(__VA_ARGS__)) |
#define | GENERATE_UNION_VISIT__(r, _, TYPE_) |
#define | GENERATE_UNION_VISIT_CONST__(r, _, TYPE_) |
#define | GENERATE_UNION_NAME__(r, _, TYPE_) |
Macros for declare cargo fields.
#define CARGO_DECLARE_UNION | ( | ... | ) |
Use this macro to declare and register cargo fields.
Example of fields registration:
Example of valid configuration:
Usage of existing bindings:
#define GENERATE_CODE | ( | MACRO, | |
... | |||
) | BOOST_PP_LIST_FOR_EACH(MACRO, _, BOOST_PP_VARIADIC_TO_LIST(__VA_ARGS__)) |
#define GENERATE_UNION_NAME__ | ( | r, | |
_, | |||
TYPE_ | |||
) |
#define GENERATE_UNION_VISIT__ | ( | r, | |
_, | |||
TYPE_ | |||
) |
#define GENERATE_UNION_VISIT_CONST__ | ( | r, | |
_, | |||
TYPE_ | |||
) |