-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
VS2026 Insiders, C2678 With C++23 Modules #5002
Copy link
Copy link
Closed as not planned
Labels
kind: bugplatform: visual studiorelated to MSVCrelated to MSVCstate: help neededthe issue needs help to proceedthe issue needs help to proceedstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updatedthe issue has not been updated in a while and will be closed automatically soon unless it is updated
Metadata
Metadata
Assignees
Labels
kind: bugplatform: visual studiorelated to MSVCrelated to MSVCstate: help neededthe issue needs help to proceedthe issue needs help to proceedstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updatedthe issue has not been updated in a while and will be closed automatically soon unless it is updated
Description
When using the Module build of nlohmann::json I get the following error:
binary '!=': no operator found which takes a left-hand operand of type 'nullptr' (or there is no acceptable conversion)This occurs at line 20512 of the current dev branch of json.hpp.
With the included (Another similar module had this include and compiled fine AND tested fine ) there is no compilation error.
I'll look into this more but I am busy for the rest of the day
Reproduction steps
not having the include
#include <sstream>triggers the compilation error c2678
Expected vs. actual results
The include essentially is providing a needed dependency that is missing in the json.hpp module based code.
Minimal code example
Error messages
Compiler and operating system
Win 11, VS2026
Library version
Dev branch, Module build
Validation
developbranch is used.