Skip to content

non-functional checks for std::string_view support #1334

@pps83

Description

@pps83

I noticed that in VS syntax highlighting was showing as if std::string_view isn't supported inside decimal, even though in my project I use latest c++ available:

decimal\decimal64_t.hpp
Image

The reason is that __cplusplus shouldn't be used in VS to check for supported standard. They don't fully support something and for that reason they keep old/wrong version for __cplusplus. Instead, usually cpp feature test macro or _MSC_LANG should be tested.

decimal\detail\config.hpp:
Image

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions