|
Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
1023 bytes
|
| Line | |
|---|
| 1 | # /* ************************************************************************** |
|---|
| 2 | # * * |
|---|
| 3 | # * (C) Copyright Paul Mensonides 2002. |
|---|
| 4 | # * Distributed under the Boost Software License, Version 1.0. (See |
|---|
| 5 | # * accompanying file LICENSE_1_0.txt or copy at |
|---|
| 6 | # * http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 7 | # * * |
|---|
| 8 | # ************************************************************************** */ |
|---|
| 9 | # |
|---|
| 10 | # /* See http://www.boost.org for most recent version. */ |
|---|
| 11 | # |
|---|
| 12 | # include <boost/preprocessor/tuple.hpp> |
|---|
| 13 | # include <libs/preprocessor/test/test.h> |
|---|
| 14 | |
|---|
| 15 | # define TUPLE (0, 1, 2, 3, 4, 5) |
|---|
| 16 | |
|---|
| 17 | BEGIN BOOST_PP_TUPLE_ELEM(6, 3, TUPLE) == 3 END |
|---|
| 18 | BEGIN BOOST_PP_TUPLE_ELEM(6, 5, TUPLE) == 5 END |
|---|
| 19 | |
|---|
| 20 | # define CALC(x) BOOST_PP_TUPLE_ELEM(3, 0, x) BOOST_PP_TUPLE_ELEM(3, 1, x) BOOST_PP_TUPLE_ELEM(3, 2, x) |
|---|
| 21 | # define T2 (+3, /2, +6) |
|---|
| 22 | |
|---|
| 23 | BEGIN CALC(T2) == 7 END |
|---|
| 24 | BEGIN CALC(BOOST_PP_TUPLE_REVERSE(3, T2)) == 6 END |
|---|
Note: See
TracBrowser
for help on using the repository browser.