HerbertKoelman / cpp-atmi

Application-to-Transaction Monitor Interface (ATMI) C++ library
http://herbertkoelman.github.com/cpp-atmi
Other
7 stars 0 forks source link

Extend tfield template parameters with FLDID32 #107

Open HerbertKoelman opened 7 years ago

HerbertKoelman commented 7 years ago

Change Tfield template declaration from template< class T > class Tfield to template< class T, FLDID32 F = 0 > class Tfield. This make it possible to declare typedefs of FML fields:

typedef amti::Tfield<std::string,EMPNAME> prenom_t;

prenom_t prenom;
prenom_t chief;
HerbertKoelman commented 7 years ago

This change will impose a change in Tfield declaration syntax.

It's better to move this change into a major release