|
Boost : |
From: John Torjo (john_at_[hidden])
Date: 2003-06-02 03:53:27
----- Original Message -----
From: "Pavel Vozenilek" <pavel_vozenilek_at_[hidden]>
To: "John Torjo" <john_at_[hidden]>
Sent: Friday, May 30, 2003 10:39 PM
Subject: fix of fix
> Hello John,
>
> The code I sent before to disable warning isn't the best.
> Here's better version (restores previous settings instead always enabling
> warnings):
>
> -------------
> #if _MSC_VER >= 1020
> #pragma once
> #endif
>
> #ifdef __BORLANDC__
> #pragma warn -8027 // functions not expanded inline
> #pragma warn -8026 // functions with exception spec not expanded inline
> #endif
>
> #include "boost/smart_assert/smart_assert.hpp"
> #include "boost/smart_assert/smart_enforce.hpp"
> #include "boost/smart_assert/smart_verify.hpp"
>
> #include "boost/smart_assert/smart_assert_settings.hpp"
>
> #ifdef __BORLANDC__
> // restore previous settings
> #pragma warn .8027
> #pragma warn .8026
> #endif
>
> #endif
Thanks. Updated.
> ----------------
>
> Btw: shouldn't
> #include "boost/..."
> be rather
> #include <boost/...>
Indeed. Updated.
Best,
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk