-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Labels
kind: bugplatform: visual studiorelated to MSVCrelated to MSVCstate: help neededthe issue needs help to proceedthe issue needs help to proceed
Description
Description
no text
Reproduction steps
cmake -S . -B build -G "Visual Studio 18 2026" -A x64
cmake --build build
Expected vs. actual results
no text
Minimal code example
no textError messages
E:\projekte\json>cmake -S . -B build -G "Visual Studio 18 2026" -A x64
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200.
-- The CXX compiler identification is MSVC 19.50.35717.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the multi-header code from E:/projekte/json/include/
-- Operating system: Windows-10.0.26200; MSYS_NT-10.0-26200 DESKTOP-A4CHLC0 3.6.5-22c95533.x86_64 2025-10-10 12:02 UTC x86_64 Msys
-- Compiler: Microsoft (R) C/C++-Optimierungscompiler Version 19.50.35717 für x64; Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.; ; Syntax: cl [ Option... ] Dateiname... [ /link Linkeroption... ]; MSVC_VERSION=1950; MSVC_TOOLSET_VERSION=145
-- C++ standard library: Microsoft C++ Standard Library (MSVC STL), _MSVC_STL_VERSION=145
-- Testing standards: 11 14 17 20 23
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Configuring done (5.1s)
-- Generating done (0.4s)
-- Build files have been written to: E:/projekte/json/build
unit-conversions.cpp
E:\projekte\json\tests\src\unit-conversions.cpp(1667,36): error C2672: "nlohmann::json_abi_v3_12_0::basic_json<std::map
,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::ve
ctor<uint8_t,std::allocator<uint8_t>>,void>::get": keine übereinstimmende überladene Funktion gefunden [E:\projekte\jso
n\build\tests\test-conversions_cpp17.vcxproj]
E:\projekte\json\include\nlohmann\json.hpp(1813,10):
kann "unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,
double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::
get(void) noexcept" sein
E:\projekte\json\tests\src\unit-conversions.cpp(1667,36):
„unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,d
ouble,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::g
et(void) noexcept“: Das Vorlage-Argument für „__formal“ konnte nicht abgeleitet werden.
E:\projekte\json\include\nlohmann\json.hpp(1812,68):
"type": Kein Element einer direkten oder indirekten Basisklasse von "std::enable_if<false,int>"
E:\projekte\json\include\nlohmann\json.hpp(1772,10):
oder "unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,
double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::
get(void) noexcept(<expr>) const"
E:\projekte\json\tests\src\unit-conversions.cpp(1667,36):
Fehler beim Spezialisieren der Funktionsvorlage „unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map
,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::
vector<uint8_t,std::allocator<uint8_t>>,void>::get(void) noexcept(<expr>) const“
E:\projekte\json\tests\src\unit-conversions.cpp(1667,36):
Mit den folgenden Vorlagenargumenten:
E:\projekte\json\tests\src\unit-conversions.cpp(1667,36):
"ValueTypeCV=std::filesystem::path"
E:\projekte\json\tests\src\unit-conversions.cpp(1667,36):
"ValueType=std::filesystem::path"
E:\projekte\json\include\nlohmann\json.hpp(1774,62):
"nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std
::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::get_impl":
keine übereinstimmende überladene Funktion gefunden
E:\projekte\json\include\nlohmann\json.hpp(1737,20):
kann "unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64
_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8
_t>>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<4>) noexcept const" sein
E:\projekte\json\include\nlohmann\json.hpp(1724,16):
oder "nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,d
ouble,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void> nl
ohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlo
hmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::get_impl(nlohmann::json_a
bi_v3_12_0::detail::priority_tag<3>) const"
E:\projekte\json\include\nlohmann\json.hpp(1701,19):
oder "BasicJsonType nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int6
4_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint
8_t>>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<2>) const"
E:\projekte\json\include\nlohmann\json.hpp(1676,15):
oder "ValueType nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,
uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>
>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<1>) noexcept(<expr>) const"
E:\projekte\json\include\nlohmann\json.hpp(1634,15):
oder "ValueType nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,
uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>
>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<0>) noexcept(<expr>) const"
E:\projekte\json\tests\src\unit-conversions.cpp(1668,29): error C3536: "p": Kann nicht verwendet werden, bevor es initi
alisiert wurde. [E:\projekte\json\build\tests\test-conversions_cpp17.vcxproj]
E:\projekte\json\tests\src\unit-conversions.cpp(1677,36): error C2672: "nlohmann::json_abi_v3_12_0::basic_json<std::map
,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::ve
ctor<uint8_t,std::allocator<uint8_t>>,void>::get": keine übereinstimmende überladene Funktion gefunden [E:\projekte\jso
n\build\tests\test-conversions_cpp17.vcxproj]
E:\projekte\json\include\nlohmann\json.hpp(1813,10):
kann "unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,
double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::
get(void) noexcept" sein
E:\projekte\json\tests\src\unit-conversions.cpp(1677,36):
„unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,d
ouble,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::g
et(void) noexcept“: Das Vorlage-Argument für „__formal“ konnte nicht abgeleitet werden.
E:\projekte\json\include\nlohmann\json.hpp(1812,68):
"type": Kein Element einer direkten oder indirekten Basisklasse von "std::enable_if<false,int>"
E:\projekte\json\include\nlohmann\json.hpp(1772,10):
oder "unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,
double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::
get(void) noexcept(<expr>) const"
E:\projekte\json\tests\src\unit-conversions.cpp(1677,36):
Fehler beim Spezialisieren der Funktionsvorlage „unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map
,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::
vector<uint8_t,std::allocator<uint8_t>>,void>::get(void) noexcept(<expr>) const“
E:\projekte\json\tests\src\unit-conversions.cpp(1677,36):
Mit den folgenden Vorlagenargumenten:
E:\projekte\json\tests\src\unit-conversions.cpp(1677,36):
"ValueTypeCV=std::filesystem::path"
E:\projekte\json\tests\src\unit-conversions.cpp(1677,36):
"ValueType=std::filesystem::path"
E:\projekte\json\include\nlohmann\json.hpp(1774,62):
"nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std
::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::get_impl":
keine übereinstimmende überladene Funktion gefunden
E:\projekte\json\include\nlohmann\json.hpp(1737,20):
kann "unknown-type nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64
_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8
_t>>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<4>) noexcept const" sein
E:\projekte\json\include\nlohmann\json.hpp(1724,16):
oder "nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,d
ouble,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void> nl
ohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlo
hmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>>,void>::get_impl(nlohmann::json_a
bi_v3_12_0::detail::priority_tag<3>) const"
E:\projekte\json\include\nlohmann\json.hpp(1701,19):
oder "BasicJsonType nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int6
4_t,uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint
8_t>>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<2>) const"
E:\projekte\json\include\nlohmann\json.hpp(1676,15):
oder "ValueType nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,
uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>
>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<1>) noexcept(<expr>) const"
E:\projekte\json\include\nlohmann\json.hpp(1634,15):
oder "ValueType nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,int64_t,
uint64_t,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uint8_t,std::allocator<uint8_t>
>,void>::get_impl(nlohmann::json_abi_v3_12_0::detail::priority_tag<0>) noexcept(<expr>) const"Compiler and operating system
VS 2026 x64 on Windows 11 x64 Pro
Library version
49026f7 (:arrow_up: Bump mkdocs-material from 9.6.23 to 9.7.0 in /docs/mkdocs (#4991), 2025-11-12)
Validation
- The bug also occurs if the latest version from the
developbranch is used. - I can successfully compile and run the unit tests.
Metadata
Metadata
Assignees
Labels
kind: bugplatform: visual studiorelated to MSVCrelated to MSVCstate: help neededthe issue needs help to proceedthe issue needs help to proceed