Closed paulhazen closed 3 years ago
Okay, here's what I did wrong, in case anyone else has this issue:
When I was getting started with RTTR I ran into this issue at compile time:
'get': use of dependent template name must be prefixed with 'template'
That caused me to find issue #183. The originating text of that issue says that changing the code in bind_impl.h
to use the 'template' prefix will silent the issue. It's true that it will silence the issue, but it will also apparently cause this error in the code at compile time.
In order to fix the issue I returned bind_impl.h
to it's 0.9.6 release, and instead of fixing the build issue with prefixing 'template', I went to Project Settings
> Configuration Properties
> C/C++
> Language
> and set Conformance mode
from yes /permissive-
to No
I should add that it's been pointed out to me that an additional problem with my example is that because my constructor is SerializationTest(const std::string& name)
, the constructor binding needs to look like this: .constructor<const std::string&>()
Hello, I'm trying to get started with RTTR, but have hit a wall.
Here is an example I wrote to show the problem I am having, I'm hoping someone can point me to what I'm doing wrong.
SerializationTest.h
:SerializationTest.cpp
:Running this causes the following to happen:
I can't for the life of me figure out what's going wrong. Can someone point out what stupid thing I'm doing?