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
As for Display the special operations generated by the compiler #224 discussion, we have identified the tool do not transforms the special operations functions that are deleted by the compiler. This is surely due to the fact that the tool is based on the AST and this information is not still there.
When the user request the default and the compiler deletes the function as he default generated will be ill formed, the tool could replace =default by =delete.
Before
struct C
{
int & i;
C() = default;
C(const C &) = default;
};
Fixed#233: Show when the compiler deletes a special member.
viboes
changed the title
Add a limitation respect to the enerated =deleted special operations
Add a limitation respect to the generated =deleted special operations
Oct 1, 2019
As for Display the special operations generated by the compiler #224 discussion, we have identified the tool do not transforms the special operations functions that are deleted by the compiler. This is surely due to the fact that the tool is based on the AST and this information is not still there.
When the user request the default and the compiler deletes the function as he default generated will be ill formed, the tool could replace =default by =delete.
Before
struct C
{
int & i;
C() = default;
C(const C &) = default;
};
https://cppinsights.io/s/cd13011a
After
struct C
{
int & i;
inline C() = delete;
inline C(const C &) = delete;
};
I believe that the documentation could report this limitation on a specific section
The text was updated successfully, but these errors were encountered: