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
This is more of a question than a problem but I am not sure where to ask. I went to cppinsights.io using the link from github. My generated output is shown below. It doesn't have all the compiler generated constructors and destructor. What gives ?
#include
#include
class Base
{
public:
// inline constexpr Base() noexcept = default;
};
class Derived : public Base
{
public:
// inline constexpr Derived() noexcept = default;
};
int main()
{
Derived d;
Base & b = static_cast<Base&>(d);
return 0;
}
The text was updated successfully, but these errors were encountered:
thanks for bringing this up. The compiler seems to have changed a little, such that the output I show in the Readme.md no longer matches. However, the constructors are still there. If you want more of the special member functions, you now have to use them. For example, make a copy of Derived (cppinsights.io/s/8b5b09cf):
This is more of a question than a problem but I am not sure where to ask. I went to cppinsights.io using the link from github. My generated output is shown below. It doesn't have all the compiler generated constructors and destructor. What gives ?
#include
#include
class Base
{
public:
// inline constexpr Base() noexcept = default;
};
class Derived : public Base
{
public:
// inline constexpr Derived() noexcept = default;
};
int main()
{
Derived d;
Base & b = static_cast<Base&>(d);
return 0;
}
The text was updated successfully, but these errors were encountered: