Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RustForeignVec problem #366

Open
happydpc opened this issue Oct 27, 2020 · 1 comment
Open

RustForeignVec problem #366

happydpc opened this issue Oct 27, 2020 · 1 comment
Labels
C++ C++ only related issues enhancement

Comments

@happydpc
Copy link

The compiler always complain about the ForeignClassRef not defined:
" error C2065: 'xxxxObjectRef': undeclared identifier"

Fix can be add to the RustForeignxxxx.h

template <bool>
class xxxxObjectWrapper;
using xxxxObject = xxxxObjectWrapper<true>;
using xxxxObjectRef = xxxxObjectWrapper<false>;
@Dushistov Dushistov added C++ C++ only related issues enhancement labels Oct 27, 2020
@Dushistov
Copy link
Owner

For now you always need include "Object.hpp" include before "ObjectRustForeignVec.h",
like this:

#include "rust_interface/Foo.hpp"
#include "rust_interface/RustForeignVecFoo.h"

I am most certainly fix this as part of #175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ C++ only related issues enhancement
Projects
None yet
Development

No branches or pull requests

2 participants