Boost and C#

J

Jon Slaughter

Is C# generics programmatically compatible with Boost and C++ templates or
is there such a difference that one cannot possible convert C++ templates
into generics?

I'm wondering but I just looked at teh boost spirit library and would love
to see it in C# but I figure its probably impossible to do. I know templates
and generics are different but they seem very close. Just wondering how much
different are they?

Maybe one use them in C++.NET and then into C#?

Thanks,
Jon
 
G

Guest

The under-the-hood implementation between c# and c++ is very different
although the use is pretty similar. They are not compatible in terms of
casting one to the other etc but experience coding one will make the other a
lot easier.
I havent seen boost.
 
L

Lucian Wischik

Jon Slaughter said:
Is C# generics programmatically compatible with Boost and C++ templates or
is there such a difference that one cannot possible convert C++ templates
into generics?

There's work on "managed STL" ("STL.net") underway. Not boost as far
as I know, though. And spirit in particular seems to make use of C++
preprocessor tricks so much as to be impossible to do in C#.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top