Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning:c4503 #1875

Closed
Yordroid opened this issue Dec 19, 2019 · 3 comments
Closed

warning:c4503 #1875

Yordroid opened this issue Dec 19, 2019 · 3 comments
Labels
kind: question platform: visual studio related to MSVC solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated

Comments

@Yordroid
Copy link

i want to delete warning
warning C4503: “nlohmann::detail::conjunction<nlohmann::detail::negation<std::is_same<void,CompatibleObjectType>>,nlohmann::detail::negation<nlohmann::detail::is_compatible_object_type<BasicJsonType,CompatibleObjectType>>,nlohmann::detail::negation<std::is_constructible<std::basic_string<char,std::char_traits,std::allocator>,CompatibleArrayType>>,nlohmann::detail::negation<nlohmann::detail::is_basic_json_nested_type<BasicJsonType,std::unique_ptr<T,nlohmann::basic_jsonstd::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer::create::<lambda_ba3b2fe0e005bec25a60c7729be5696a>>>>,nlohmann::detail::has_value_type,nlohmann::detail::has_iterator>”: 超出修饰名的长度,名称被截断

compile by vs2015
use new version

@JuliaChiang
Copy link

Hi! I am new to Github. I am also interested in doing some projects in C++. I wonder if you can share some experience? Thank you :)

@nlohmann
Copy link
Owner

According to https://docs.microsoft.com/de-de/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4503?view=vs-2019

This compiler warning is obsolete and is not generated in Visual Studio 2017 and later compilers.

Given the nature of the warning, I think changing the code could introduce incompatibilities and is not worth the risk.

@nlohmann nlohmann added platform: visual studio related to MSVC solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) labels Dec 19, 2019
@stale
Copy link

stale bot commented Jan 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question platform: visual studio related to MSVC solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated
Projects
None yet
Development

No branches or pull requests

3 participants