Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Ctor takes non-const reference but pass in a const arrayError(s): source_file.cpp(15): error C2440: 'initializing': cannot convert from 'const A [4]' to 'A *' source_file.cpp(15): note: Reason: cannot convert from 'const A [4]' to 'A *' source_file.cpp(15): note: Conversion loses qualifiers source_file.cpp(26): note: see reference to function template instantiation 'B::B<const A,4>(Target (&)[4])' being compiled with [ Target=const A ] source_file.cpp(15): error C2439: 'B::pTargetList': member could not be initialized source_file.cpp(19): note: see declaration of 'B::pTargetList' source_file.cpp(13): error C2476: 'constexpr' constructor does not initialize all members source_file.cpp(19): note: 'B::pTargetList' was not initialized by the constructor Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 |
λ
.NET NoSQL database for rapid development
|