On 09/20/2010 08:04 PM, joel falcou wrote:
then it'll work.
Sorry, I need to ask again:
// -------------------------------------------------
#include
using namespace boost;
typedef proto::terminalproto::_::type terminal;
struct addition:
proto::or_
<
terminal,
proto::plus
>
{};
struct equation:
proto::or_
<
proto::equal_to
>
{};
template<class Expr>
struct extension;
struct my_domain
: proto::domain<
proto::pod_generator< extension>
, equation
>
{};
template<class Expr>
struct extension
{
BOOST_PROTO_EXTENDS(
Expr
, extension<Expr>
, my_domain
)
};
int main()
{
extension i;
i == i; // Error
}
// -------------------------------------------------
I know it has to be obvious, but I just can't see it...
Regards,
Roland