Error: Expecting a '(' for function-style type conversion and type construction I remember that there seems to be an error caused by calling a function that does not accept parameters and then forgetting to type (). Of course Maybe I remembered it wrong, or there are other reasons
This may mean that C-style forced data conversion was used during the data conversion process and was used incorrectly. The compiler recommends using C++-style type conversion.
Functional style conversion or constructor requires "("
This is a syntax error reported by the compiler. The compiler should think that your code is performing type conversion or writing a constructor but you did not add parentheses.
Functional style conversion: class A {} auto i = A(0); // Because it looks like a function call, it is called functional style conversion; unique to C++
Error: Expecting a '(' for function-style type conversion and type construction
I remember that there seems to be an error caused by calling a function that does not accept parameters and then forgetting to type (). Of course Maybe I remembered it wrong, or there are other reasons
This may mean that C-style forced data conversion was used during the data conversion process and was used incorrectly. The compiler recommends using C++-style type conversion.
Functional style conversion or constructor requires "("
This is a syntax error reported by the compiler. The compiler should think that your code is performing type conversion or writing a constructor but you did not add parentheses.
Functional style conversion:
class A {}
auto i = A(0); // Because it looks like a function call, it is called functional style conversion; unique to C++
Type construction:
class foo
{
}