better-enums/test/link/helper.cc
Anton Bachin 9810dd07ce Changed _size to a function.
An alternative constant _size_constant is provided for use in C++98,
for example for declaring arrays.

Also renamed underlying_traits to integral_mapping.
2015-06-19 17:05:33 -05:00

9 lines
201 B
C++

#include <iostream>
#include "shared.h"
void print(Channel channel)
{
std::cout << Channel::_name() << "::" << channel._to_string() << std::endl;
std::cout << Channel::_size() << std::endl;
}