
14 Jun
2007
14 Jun
'07
5:38 p.m.
"Sebastian Redl" <sebastian.redl@getdesigned.at> wrote
Arkadiy Vertleyb wrote:
I would say that, if your technique, as a library author, can easily lead to the violation of language rules by your users, even though these users don't do anything obviously wrong, such technique can be defined as invalid.
Define "easily", then.
I have to admit that using a main template for a type in one TU, and a specialization for the same in another TU probably doesn't make a lot of sense, and one can further enforce using specialization by not providing the definition of the main template. So, my example doesn't hold. Regards, Arkadiy