$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [variant] awkward recursion
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-11-02 11:58:45
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