
9 Feb
2012
9 Feb
'12
7:09 p.m.
"paul Fultz" je napisao u poruci interesnoj grupi:1328802527.4759.YahooMailNeo@web112602.mail.gq1.yahoo.com...
Actually, you could just take the optional_traits as the first parameter. So you define optional<T> or optional<optional_traits<my_traits<T> > >. Then optional would be specialized for optional_traits that will get the user-defined traits.
(possibly a bit of work to still get the special trivial destructor and assignment functionality in the specialization, but) Clever ;) -- "What Huxley teaches is that in the age of advanced technology, spiritual devastation is more likely to come from an enemy with a smiling face than from one whose countenance exudes suspicion and hate." Neil Postman