On 8 April 2014 22:11, captaindet <2krnk at gmx.net> wrote: > [...] I noticed it works if you move the enum declaration above the instantiation of template valid.