Changeset 2662


Ignore:
Timestamp:
08/03/2010 21:38:17 (2 years ago)
Author:
chris
Message:

Merge [2606] from trunk into 0.11rc7. Support throwing exception with
more complex stringstream-formatted messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/RELEASE/0.11rc7/lib/common/Box.h

    r2661 r2662  
    116116#define THROW_EXCEPTION_MESSAGE(type, subtype, message) \ 
    117117        { \ 
     118                std::ostringstream _box_throw_line; \ 
     119                _box_throw_line << message; \ 
    118120                if(!HideExceptionMessageGuard::ExceptionsHidden()) \ 
    119121                { \ 
     
    123125                                ") at " __FILE__ "(" << __LINE__ << ")") \ 
    124126                } \ 
    125                 throw type(type::subtype, message); \ 
     127                throw type(type::subtype, _box_throw_line.str()); \ 
    126128        } 
    127129 
Note: See TracChangeset for help on using the changeset viewer.