On 09/10/10 21:15, Eric Niebler wrote:
You mean, if Domain is a template parameter. Crap.
Yes sorry
Use case at hand is :
namespace nt2 { namespace simd
{
template
struct expression
{
typedef domain domain_type;
typedef expression self_type;
BOOST_PROTO_BASIC_EXTENDS(Expr, self_type, domain_type)
};
template struct generator
{
template<class Sig> struct result;
template
struct result { typedef expression
type; };
template<class Expr>
expression const operator()(Expr const &xpr) const
{
expression const that = {xpr};
return that;
}
};
template
struct domain : boost::proto::domain< generator
, grammar
{};
} }
I think I need to add (and test and document) a whole other collection
of macros to support this corner case. Grrrr...
Wait, as I said, it worked pre 1.43. So mayeb we can track the change in
the svn log ?
Filling the bug atm so we don't lose it.