Changeset 3786


Ignore:
Timestamp:
Jan 29, 2019, 5:46:04 AM (6 months ago)
Author:
Peter
Message:

The code snippet in YAT_CXX_THROW_IF_NESTED didn't compile also when rethrow_if_nested was available causing false negative test results. Fixed here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_cxx11.m4

    r3730 r3786  
    11## $Id$
    22#
    3 # serial 4  (yat 0.15)
     3# serial 5  (yat 0.16)
    44#
    55# see http://www.gnu.org/software/automake/manual/automake.html#Serials
     
    110110YAT_CXX_TRY_CXX11([throw_if_nested], [ dnl header
    111111  @%:@include <exception>
     112  @%:@include <stdexcept>
    112113  void foo(void);
    113114  ],[ dnl body
     
    116117  }
    117118  catch (std::runtime_error& e) {
    118     std::throw_with_nested(std::runtime_error("foo"), e);
     119    std::throw_with_nested(std::runtime_error("foo"));
    119120  }
    120121  catch (std::exception& e) {
Note: See TracChangeset for help on using the changeset viewer.