This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This example is a variation on the code posted by Dave Abrahams at: | |
// https://gist.github.com/1528856. | |
#include <iostream> | |
template <typename Tag> | |
typename Tag::type saved_private_v; | |
template <typename Tag, typename Tag::type x> | |
bool save_private_v = (saved_private_v<Tag> = x); |