Skip to content

练习: 08-literal-type-0 英文(en) 没有设置C++17 导致报错 - non-constexpr function 'operator[]' cannot be used in a constant expression #37

@Sunrisepeak

Description

@Sunrisepeak

non-constexpr function 'operator[]' cannot be used in a constant expression

en版本

target("cpp11-08-literal-type-0")
add_files("08-literal-type-0.cpp")
target("cpp11-08-literal-type-1")

zh版本

target("cpp11-08-literal-type-0")
set_languages("c++17") -- TODO: optimize it
add_files("08-literal-type-0.cpp")

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    新手友好

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions