Hey Jason,

2011/12/12 Jason H <scorp...@yahoo.com>:
> I'm having trouble using these interchangably. My legacy code uses enums,
> but this template construct is tripping me up. What is the best way to get
> them to work together.
>
> Conversion from 'int' to WFlags<Wt::ItemFlag' is ambiguous
> Conversion from 'MyEnum' to non-scalar type WFlags<ItemFlag> requested.

WFlags<T> allows conversion from a 'T' to a WFlags<T> and is
specifically designed to disallow other conversions.

In this case, it seems that you are trying to pass an 'int' to a
WFlags, which is what WFlags was designed to avoid, or MyEnum to
WFlags<ItemFlag> which seems entirely invalid ?

Perhaps a test case would help to understand the problem better ?

Regards,
koen

------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to