20.01.2015 Views

Advanced Preprocessor Meta- Programming with Boost ...

Advanced Preprocessor Meta- Programming with Boost ...

Advanced Preprocessor Meta- Programming with Boost ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Extracting Tuple Elements<br />

#include <br />

#define SEQ FLAG(F1) FLAG(F2) FIELD(F3,6) FIELD(F4,3) FLAG(F5)<br />

#define __FIELD_TUPLE_SIZE 2<br />

#define __FIELD_NAME(FT) \<br />

BOOST_PP_TUPLE_ELEM(__FIELD_TUPLE_SIZE, 0, FT)<br />

#define __FIELD_LENGTH(FT) \<br />

BOOST_PP_TUPLE_ELEM(__FIELD_TUPLE_SIZE, 1, FT)<br />

Confidential ©NDS Ltd 2009. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!