Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How to use the c# Invoke Boost?
Posted

Why would you want to ? Boost is a C++ library. You'd use it in C++. If you wanted to use it in C#, you'd write a C++/CLI dll that could be called from C#, but unless you're working with C++ already, it seems like an odd way to do things. You'd get no direct access to Boost libraries, only access to managed methods you write, which could expose the functionality.
 
Share this answer
 
For C# to use any unmanaged template class or function, it has to exported via a DLL. And you cannot export a generic template class or function from a DLL. When exporting you have to specify a type. As you may have noticed, all template libraries available are in source code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900