Chapter Contents

Previous

Next
599

599



ERROR: The function declaration `function-name' requires an explicit parameter list.


Explanation


Explanation

This error can be diagnosed when a function is defined using a function typedef name. The named function was defined with just a function typedef name. This is erroneous because the parameter list is not explicitly stated in the function definition. For example, the following would produce this message:

typedef int F(int);
F foo
    { 
    return 10; 
    }

This error can also be diagnosed for a member declaration in a specialization of a class template when the declaration has function type but the original template declaration is not a function declaration. See the C++ standard, 14.3.1 paragraph 3.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.