|
Boost : |
From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-09-06 04:19:49
| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Matthias Schabel
| Sent: 05 September 2006 19:04
| To: boost_at_[hidden]
| Subject: Re: [boost] Boost Units library preview
|
| > Making progress - got example1 to work, but needed
| >
| > #if defined (_MSC_VER)
| > # pragma warning(push)
| > # pragma warning(disable: 4100) // 'source' :
| unreferenced formal
| > parameter
| > #endif
| >
| > to avoid a blizzard of warning messages.
|
| As I mentioned earlier, I don't have access to a current Visual C++
| compiler, but I'm happy to add relevant warning suppressing
| #pragmas...sounds like it doesn't like me naming arguments in
| template declarations...
Yes, somehwat annoyingly, but easily cured by commenting it out /* source */
(or deleting, but then the helpful documentation is lost, so not my
preference). A Minor isse but a minor thing to cure.
| > Do you need a using boost::mpl::size_t;? to resolve the ambiguity?
|
| I think it's the opposite problem - the cxxabi.h header has a bunch
| of references to size_t that aren't qualified with std::. Anyway, I
| think the problem went away (again, per Deane) when I moved
| my using
| namespace boost::mpl; inside the boost::units namespace. Again,
| please correct me if I'm wrong...
John Maddock has used
using namespace std;
WITHIN the function scope
to overcome what I think was the same widespread problem in math
distributions with not finding pow in namespace std.
However, I am on holiday for 10 days, so I can't test for you now.
Paul
--- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk