
2 Nov
2012
2 Nov
'12
3:58 p.m.
on Fri Nov 02 2012, Mathias Gaunard <mathias.gaunard-AT-ens-lyon.org> wrote:
On 01/11/12 14:37, Dave Abrahams wrote:
As far as I can tell, putting sizeof() inside a layer of template instantiation doesn't solve anything. But maybe I'm missing something.
The idea would be that the user of variant<T0, T1, ..., Tn> would be able to provide incomplete types Ti if size_forward<Ti> is specialized.
I suppose one could arrange for a later compilation error should the size turn out to be wrong. -- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost