Skip to content

Error C2146 and error C4430 in benchmark_runner.cc(62). #853

@joe2018Outlookcom

Description

@joe2018Outlookcom

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.40629 for x86 error messages :
src\benchmark_runner.cc(62): error C2146: syntax error : missing ';' before identifier 'IterationCount'
src\benchmark_runner.cc(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Annotation 2019-08-21 112221
Here is the point:

static constexpr IterationCount kMaxIterations = 1000000000;

The suggestion is to replace ‘constexpr’ with 'const'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions