Skip to content

The MSVC11 (Visual Studio 2012) throw std::tuple error when compiling #148

Closed
@LevskiWeng

Description

@LevskiWeng

When compiling in MSVC11, the compiler said:

error C2977: 'std::tuple' : too many template arguments

I've googled the error message, and according to the stackoverflow post, I added the following preprocessor to all cppformat projects:

_VARIADIC_MAX=10

and then it compiled successfully.

I wonder is it a good idea for the project maintainers add the above preprocessor to the default CMakefile.txt when CMake found that the build environment is MSVC11?

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