libcyphal icon indicating copy to clipboard operation
libcyphal copied to clipboard

cetl::rtti::rtti in two places

Open thirtytwobits opened this issue 10 months ago • 1 comments

It seems the compiler is somehow okay with this but both IExecutor and ScatteredBuffer extend cetl::rtti::rtti?

thirtytwobits avatar Jan 31 '25 01:01 thirtytwobits

As we just found out at the call, the following is valid:

#include <iostream>

class rtti{};

class derived : rtti::rtti::rtti::rtti {};

int main()
{
    derived d;
    std::cout << &d;
    return 0;
}

So this is just a typo.

pavel-kirienko avatar Jan 31 '25 17:01 pavel-kirienko