Click here to Skip to main content
15,896,912 members
Articles / Programming Languages / VC++

Static Value Lists

Rate me:
Please Sign up or sign in to vote.
4.60/5 (7 votes)
25 Aug 2011CPOL18 min read 23.6K   246   17  
An introduction to advanced template metaprogramming using an explanatory project
#pragma once

// The ENUMERATORLIB_VS2008HACK preprocessor definition
// activates a workaround for:
// fatal error C1001: Internal Compiler Error, msc1.cpp, line 1411
#define ENUMERATORLIB_VS2008HACK

#include "stream_fo.h"

#define COUT_VALUE_TEST(x, e) lobster::stream_fo::write_value_test(std::cout, (x), (e), (#x))
#define COUT_INFO(x) lobster::stream_fo::write(std::cout, (#x), (x))

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions