Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68059 - sandbox/gil/boost/gil
From: dsaritz_at_[hidden]
Date: 2011-01-12 11:56:07


Author: psiha
Date: 2011-01-12 11:56:04 EST (Wed, 12 Jan 2011)
New Revision: 68059
URL: http://svn.boost.org/trac/boost/changeset/68059

Log:
Fixed compilation for Non-MSVC compilers.
Text files modified:
   sandbox/gil/boost/gil/image.hpp | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: sandbox/gil/boost/gil/image.hpp
==============================================================================
--- sandbox/gil/boost/gil/image.hpp (original)
+++ sandbox/gil/boost/gil/image.hpp 2011-01-12 11:56:04 EST (Wed, 12 Jan 2011)
@@ -28,6 +28,8 @@
 #include "metafunctions.hpp"
 #include "algorithm.hpp"
 
+#include "extension/io2/detail/platform_specifics.hpp" //...zzz...BF_ASSUME
+
 namespace boost { namespace gil {
 
 //#ifdef _MSC_VER
@@ -177,11 +179,11 @@
             if (!detail::has_trivial_pixel_constructor<view_t, is_planar<view_t>::value>::value)
                 default_construct_pixels(_view);
         } catch(...) {
- __assume
- (
+ BF_ASSUME
+ ((
                 !view_is_basic<view_t> ::value &&
                 !detail::has_trivial_pixel_constructor<view_t, is_planar<view_t>::value>::value
- );
+ ));
             deallocate(dimensions);
             throw;
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk