Not that struct/public/private are not an issue, it's a matter of style.
\godot-cpp\include\core\Variant.hpp(264): error C2825: 'T': must be a class or namespace when followed by '::'
\headers-repro.h(15): note: see reference to function template instantiation 'godot::Variant::operator const T(void) const<const char>' being compiled
with
[
T=const char
]
\godot-cpp\include\core\Variant.hpp(264): error C2510: 'T': left of '::' must be a class/struct/union
\godot-cpp\include\core\Variant.hpp(264): error C3861: '___get_from_variant': identifier not found
If you uncomment or comment
#define NOWEIRDFUNCS
, it will generate this error, or fix that error.Using branch 3.x, building with scons
the compiler keeps pointing at this offending line, for some reason: https://github.com/godotengine/godot-cpp/blob/3.x/include/core/Variant.hpp#L264
Not that struct/public/private are not an issue, it's a matter of style.
Header
class_file.cpp
gdlibrary_repro.cpp