Closed copilot0058 closed 2 days ago
What OS, CEF version and compiler version?
Describe the bug A clear and concise description of what the bug is.
const size_t pos = std::min(url.find('?'), url.find('#'));
To Reproduce
expected an identifierC/C++(40) #define min(a,b) (((a) < (b)) ? (a) : (b)) Expands to: (((url.find('?')) < (url.find('#'))) ? (url.find('?')) : (url.find('#')))
Add "NOMINMAX" to PreprocessorDefinitions in your project setting , then your compile error will disappear.
NOMINMAX
is also already defined in the provided CMake Windows configuration.
Describe the bug A clear and concise description of what the bug is.
https://github.com/chromiumembedded/cef-project/blob/c3104bd6ab3fce9551edd4d74ed575605f37f4a0/examples/shared/resource_util.cc#L19
To Reproduce