DigitalGhost
|
codepad
|
|
DigitalGhost
|
Saved pastes by DigitalGhost:
#include <iostream>
#include <boost/preprocessor/cat.hpp>
#define PP_ADD_C(x, y) PP_ADD_C_I(x, y)
#define PP_ADD_C_I(x, y) \
|
view (47 lines, 1 line of output) |
#include <iostream>
#include <boost/config.hpp>
int main() {
std::cout << BOOST_COMPILER << '\n';
|
view (7 lines, 2 lines of output) |
#include <boost/utility/result_of.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/mpl/assert.hpp>
|
view (20 lines) |
#include <iostream>
struct foo {
bool get() const { return b; }
typedef bool (foo::* bool_type)() const;
|
view (17 lines, 2 lines of output) |
#include <iostream>
#include <functional>
struct int_adder {
typedef int first_argument_type;
|
view (13 lines, 1 line of output) |
#include <iostream>
#include <boost/preprocessor/arithmetic/mod.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/control/expr_iif.hpp>
|
view (24 lines, 1 line of output) |
// g++-4.3.3 -std=c++0x -E -P
#define PP_IS_EMPTY(...) PP_IS_EMPTY_I(__VA_ARGS__, NIL)
#define PP_IS_EMPTY_I(a, ...) PP_IS_EMPTY_II((HELPER_I a, HELPER_I __VA_ARGS__))
|
view (34 lines) |
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/stringize.hpp>
|
view (15 lines, 1 line of output) |
#include <iostream>
#define PP_AUTO_REC(p) PP_LOOKUP_UNEXPANDED_1(p)
#define PP_LOOKUP_UNEXPANDED_1(p) PP_IF(p(1), 1 PP_EAT, PP_LOOKUP_UNEXPANDED_2)(p)
#define PP_LOOKUP_UNEXPANDED_2(p) PP_IF(p(2), 2 PP_EAT, PP_LOOKUP_UNEXPANDED_3)(p)
|
view (43 lines, 1 line of output) |
#include <iostream>
#define PP_IF(c, t, f) PP_IF_I(c, t, f)
#define PP_IF_I(c, t, f) PP_IF_ ## c(t, f)
#define PP_IF_0(t, f) f
|
view (40 lines, 1 line of output) |
#include <iostream>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
#include <boost/preprocessor/seq/fold_left.hpp>
|
view (36 lines, 2 lines of output) |