Minor release. Made some fixes to get it compiled with GCC v3.4.2
Minor release. Made some fixes to get it working with GCC v3.4.2
Increased number of parameters in func::function and tup::tuple to 15.
Added func::named_params_function template for creating functors with named parameters.
Added the ttl::flg namespace. It contains the flags<> class and flag_mapper<> function templates.
http://tinytl.sourceforge.net/
Made some internal improvements and fixes to the tuple and variant templates.
TTL v1.1
http://www.sourceforge.net/projects/tinytl
I. New
New in this release is the tup namespace.
Its semantic is very close to boost::tuples.
The tup namespace contains following templates:
ttl::tup::tuple<>
ttl::tup::get<>
ttl::tup::length<>
ttl::tup::element<>
Usage:
ttl::tup::tuple<int, double> my_tuple;
my_tuple t(1, 2.3);
int n = ttl::tup:get<0>(t);
double x = ttl::tup:get<1>(t);
int l = ttl::tup::length<my_tuple>::value;
assert(l==2);... read more
The beta version includes the following templates and more.
typelist<>
function<>
variant<>
signal<>