
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Lars Viklund Sent: Monday, February 28, 2011 6:30 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost::asio from C++ Forms App in VS 2010
You are probably misunderstanding the situation. The OP is using C++/CLI, the Microsoft C++ dialect used for gluing C and C++ code to the managed world. He is not using the usual native C++ projects, which are _very_ well supported by Boost.
Most of Boost (thread, asio, shared_ptr, heck - most of it) does not build or work cleanly under C++/CLI. I guess that it's implicitly assumed to be known that C++/CLI isn't C++, and shouldn't be expected to compile most of modern C++ code, particularly not something as workaround-happy as Boost.
FWIW It's not quite as bad as you are painting. The large Boost.Math library *does* compile, and compiles under managed C++/CLI to build a Boost.Math dll. A .Net project in C# and using VS net framework links with the Boost.Math dll to provide the windows display feature for a Statistical Distribution Explorer Windows utility (so you can look up students_ts etc to your heart's content). To my surprise, /CLI worked without any trouble at all did what it said on the tin. But other Boost libraries may well not work at all with /CLI. Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com