You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a derived class from a crv_sequence_itema and then another class b that derives from a. It is essential to pass the crv_object_name from b to the constructor of a. Otherwise randomization fails and the constraints of b are ignored.
Is this name passing required? Can it be made it easier?
classa : publiccrave::crv_sequence_item
{
public:a(crave::crv_object_name name = "a")
{
}
...
classb : virtual public a
{
public:typedef a super_t;
b(crave::crv_object_name name = "b")
: super_t(name) // --> Randomization fails if object_name is not passed to constructor of base classe
When creating a derived class from a
crv_sequence_item
a and then another class b that derives from a. It is essential to pass thecrv_object_name
from b to the constructor of a. Otherwise randomization fails and the constraints of b are ignored.Is this name passing required? Can it be made it easier?
Thanks to @hvdschoot for finding this issue
The text was updated successfully, but these errors were encountered: