Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][StateChart]polymorphic_downcastfailure
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2009-05-01 10:47:41

> By the way, isn't it worth verifying in compile-time that MostDerived
> is actually the most derived?

At compile time, you could verify that A is a subclass of sc::event<A>, but
that doesn't stop you to define your events as follows ...

struct A : sc:event<A> {};
struct B : sc::event<A> {};

... which (I guess) was what you have run into?


Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header. 

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at