strange error in host code

// do you like C# or Python properties? let's get them!

template<class Data>

class property



	property& operator=(const Data& d) { set(d); return *this; }

	operator Data&() { return get();}


	virtual void set(const Data& d) { data = d; };

	virtual Data& get()    { return data; }

	Data data;


then in host code:

property<int> x;

cause this error:

error LNK2001: unresolved external symbol __ZTVN10__cxxabiv117__class_type_infoE

look like we have some problems with RTTI and templates simultaniuosly

C++ (in host or device code) is not fully supported by NVCC/cudacc at this time.


i see.


page 22

so is it a bug or i don’t understand this phrase about "front end of the compiler " ?

Are you compile with “–host-compilation=c++” flag to nvcc?


what should i change ?




i have done this but get those errors: