Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using existing C++ class with managed template if class in namespace

JoeHolderApr 3 2013 — edited Apr 9 2013
Hi,

does anyone know make an existing C++ class that is declared within nested namespaces into a Coherence managed template class?

I have a class and declared within reuters::transactions::tds::cache

called CacheD3ContextTerminalData.

I declare the <<, == and hash functions for it.

I've tried variants on either calling 'using namespace reuters::transactions::tds::cache;' or passing in the fully qualified class name to these functions.

If I use the 'using namespace' the binary operator is not found in Management.hpp.

If I try passing in the fully qualified class name everywhere I get the same problem - an addtionally if I try and pass it into COH_REGISTER_MANAGED_CLASS the macro seems to truncate the classname at 'reuters'

If I declare CacheD3ContextTerminalData outside of any namespaces it is ok.


But isn't the idea to support existing classes?

Many thanks if anyone knows how to do this.

Joe
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2013
Added on Apr 3 2013
2 comments
375 views