Changeset 515 for trunk/ADOL-C/include


Ignore:
Timestamp:
May 16, 2014 4:25:23 AM (5 years ago)
Author:
kulshres
Message:

Throw a std::exception instead of calling exit()

based on branch 'adolcerror' of https://github.com/b45ch1/adol-c

Suggested-by: Sebastian Walter <sebastian.walter@…>
Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

Location:
trunk/ADOL-C/include/adolc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/include/adolc/adouble.h

    r498 r515  
    3030#include <iostream>
    3131#include <cmath>
     32#include <stdexcept>
     33
    3234using std::cout;
    3335using std::cin;
     
    3537using std::ostream;
    3638using std::istream;
     39using std::logic_error;
    3740
    3841#include <adolc/common.h>
     
    253256        fprintf(DIAG_OUT,"ADOL-C error: illegal default construction of adub"
    254257                " variable\n");
    255         exit(-2);
     258        throw logic_error("illegal constructor call, errorcode=-2");
    256259    };
    257260    explicit adub( double ):badouble(0) {
    258261        fprintf(DIAG_OUT,"ADOL-C error: illegal  construction of adub variable"
    259262                " from double\n");
    260         exit(-2);
     263        throw logic_error("illegal constructor call, errorcode=-2");
    261264    };
    262265
  • trunk/ADOL-C/include/adolc/adtl.h

    r510 r515  
    2121#include <adolc/common.h>
    2222#include <list>
     23#include <stdexcept>
    2324
    2425using std::ostream;
    2526using std::istream;
    2627using std::list;
     28using std::logic_error;
    2729
    2830namespace adtl {
     
    479481    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    480482        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    481         exit(1);
     483        throw logic_error("incorrect function call, errorcode=1");
    482484    }
    483485    if (do_val())
     
    522524    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    523525        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    524         exit(1);
     526        throw logic_error("incorrect function call, errorcode=1");
    525527    }
    526528    if (do_val())
     
    540542    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    541543        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    542         exit(1);
     544        throw logic_error("incorrect function call, errorcode=1");
    543545    }
    544546    if (do_val())
     
    595597    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    596598        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    597         exit(1);
     599        throw logic_error("incorrect function call, errorcode=1");
    598600    }
    599601    if (do_val())
     
    614616    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    615617        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    616         exit(1);
     618        throw logic_error("incorrect function call, errorcode=1");
    617619    }
    618620    if (do_val())
     
    630632    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    631633        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    632         exit(1);
     634        throw logic_error("incorrect function call, errorcode=1");
    633635    }
    634636    if (do_val())
     
    651653    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    652654        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    653         exit(1);
     655        throw logic_error("incorrect function call, errorcode=1");
    654656    }
    655657    if (do_val())
     
    673675    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    674676        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    675         exit(1);
     677        throw logic_error("incorrect function call, errorcode=1");
    676678    }
    677679    if (do_val())
     
    692694    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    693695        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    694         exit(1);
     696        throw logic_error("incorrect function call, errorcode=1");
    695697    }
    696698    if (do_val())
     
    710712    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    711713        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    712         exit(1);
     714        throw logic_error("incorrect function call, errorcode=1");
    713715    }
    714716    if (do_val())
     
    728730    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    729731        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    730         exit(1);
     732        throw logic_error("incorrect function call, errorcode=1");
    731733    }
    732734    if (do_val())
     
    746748    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    747749        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    748         exit(1);
     750        throw logic_error("incorrect function call, errorcode=1");
    749751    }
    750752    if (do_val())
     
    769771    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    770772        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    771         exit(1);
     773        throw logic_error("incorrect function call, errorcode=1");
    772774    }
    773775    if (do_val())
     
    795797    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    796798        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    797         exit(1);
     799        throw logic_error("incorrect function call, errorcode=1");
    798800    }
    799801    if (do_val())
     
    813815    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    814816        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    815         exit(1);
     817        throw logic_error("incorrect function call, errorcode=1");
    816818    }
    817819    if (do_val())
     
    834836    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    835837        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    836         exit(1);
     838        throw logic_error("incorrect function call, errorcode=1");
    837839    }
    838840    if (do_val())
     
    852854    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    853855        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    854         exit(1);
     856        throw logic_error("incorrect function call, errorcode=1");
    855857    }
    856858    if (do_val())
     
    870872    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    871873        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    872         exit(1);
     874        throw logic_error("incorrect function call, errorcode=1");
    873875    }
    874876    if (do_val())
     
    888890    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    889891        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    890         exit(1);
     892        throw logic_error("incorrect function call, errorcode=1");
    891893    }
    892894    if (do_val())
     
    906908    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    907909        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    908         exit(1);
     910        throw logic_error("incorrect function call, errorcode=1");
    909911    }
    910912    if (do_val())
     
    926928    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    927929        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    928         exit(1);
     930        throw logic_error("incorrect function call, errorcode=1");
    929931    }
    930932    if (do_val())
     
    944946    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    945947        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    946         exit(1);
     948        throw logic_error("incorrect function call, errorcode=1");
    947949    }
    948950    if (do_val())
     
    962964    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    963965        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    964         exit(1);
     966        throw logic_error("incorrect function call, errorcode=1");
    965967    }
    966968    if (do_val())
     
    981983    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    982984        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    983         exit(1);
     985        throw logic_error("incorrect function call, errorcode=1");
    984986    }
    985987    if (do_val())
     
    10291031    if (unlikely(!adouble::_do_val() && (adouble::_do_adval() || adouble::_do_indo()))) {
    10301032        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1031         exit(1);
     1033        throw logic_error("incorrect function call, errorcode=1");
    10321034    }   
    10331035    double tmp2=a.val-b.val;
     
    10691071    if (unlikely(!adouble::_do_val() && (adouble::_do_adval() || adouble::_do_indo()))) {
    10701072        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1071         exit(1);
     1073        throw logic_error("incorrect function call, errorcode=1");
    10721074    }   
    10731075    double tmp2=v-a.val;
     
    11051107    if (unlikely(!adouble::_do_val() && (adouble::_do_adval() || adouble::_do_indo()))) {
    11061108        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1107         exit(1);
     1109        throw logic_error("incorrect function call, errorcode=1");
    11081110    }   
    11091111    double tmp2=a.val-v;
     
    11411143    if (unlikely(!adouble::_do_val() && (adouble::_do_adval() || adouble::_do_indo()))) {
    11421144        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1143         exit(1);
     1145        throw logic_error("incorrect function call, errorcode=1");
    11441146    }   
    11451147    double tmp2=a.val-b.val;
     
    11821184    if (unlikely(!adouble::_do_val() && (adouble::_do_adval() || adouble::_do_indo()))) {
    11831185        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1184         exit(1);
     1186        throw logic_error("incorrect function call, errorcode=1");
    11851187    }   
    11861188    double tmp2=v-a.val;
     
    12181220    if (unlikely(!adouble::_do_val() && (adouble::_do_adval() || adouble::_do_indo()))) {
    12191221        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1220         exit(1);
     1222        throw logic_error("incorrect function call, errorcode=1");
    12211223    }   
    12221224    double tmp2=a.val-v;
     
    12731275    if (no_do_val()) {
    12741276        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1275         exit(1);
     1277        throw logic_error("incorrect function call, errorcode=1");
    12761278    }   
    12771279    return ADOLC_MATH_NSP::frexp(a.val, v);
     
    12831285    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    12841286        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1285         exit(1);
     1287        throw logic_error("incorrect function call, errorcode=1");
    12861288    }
    12871289    if (do_val())
     
    13041306    if (no_do_val()) {
    13051307        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1306         exit(1);
     1308        throw logic_error("incorrect function call, errorcode=1");
    13071309    }
    13081310    if (do_val()) {
     
    13181320    if (no_do_val()) {
    13191321        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1320         exit(1);
     1322        throw logic_error("incorrect function call, errorcode=1");
    13211323    }
    13221324    if (do_val()) {
     
    13991401    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    14001402        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1401         exit(1);
     1403        throw logic_error("incorrect function call, errorcode=1");
    14021404    }
    14031405    if (likely(adouble::_do_adval() && adouble::_do_val()))
     
    14231425    if (unlikely(!adouble::_do_val() && adouble::_do_adval())) {
    14241426        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1425         exit(1);
     1427        throw logic_error("incorrect function call, errorcode=1");
    14261428    }
    14271429    if (likely(adouble::_do_adval() && adouble::_do_val()))
     
    14391441    if (no_do_val()) {
    14401442        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1441         exit(1);
     1443        throw logic_error("incorrect function call, errorcode=1");
    14421444    }
    14431445    return val==0.0;
     
    14481450    if (no_do_val()) {
    14491451        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1450         exit(1);
     1452        throw logic_error("incorrect function call, errorcode=1");
    14511453    }
    14521454    return val!=a.val;
     
    14561458    if (no_do_val()) {
    14571459        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1458         exit(1);
     1460        throw logic_error("incorrect function call, errorcode=1");
    14591461    }
    14601462    return val!=v;
     
    14641466    if (no_do_val()) {
    14651467        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1466         exit(1);
     1468        throw logic_error("incorrect function call, errorcode=1");
    14671469    }
    14681470    return v!=a.val;
     
    14721474    if (no_do_val()) {
    14731475        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1474         exit(1);
     1476        throw logic_error("incorrect function call, errorcode=1");
    14751477    }
    14761478    return val==a.val;
     
    14801482    if (no_do_val()) {
    14811483        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1482         exit(1);
     1484        throw logic_error("incorrect function call, errorcode=1");
    14831485    }
    14841486    return val==v;
     
    14881490    if (no_do_val()) {
    14891491        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1490         exit(1);
     1492        throw logic_error("incorrect function call, errorcode=1");
    14911493    }
    14921494    return v==a.val;
     
    14961498    if (no_do_val()) {
    14971499        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1498         exit(1);
     1500        throw logic_error("incorrect function call, errorcode=1");
    14991501    }
    15001502    return val<=a.val;
     
    15041506    if (no_do_val()) {
    15051507        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1506         exit(1);
     1508        throw logic_error("incorrect function call, errorcode=1");
    15071509    }
    15081510    return val<=v;
     
    15121514    if (no_do_val()) {
    15131515        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1514         exit(1);
     1516        throw logic_error("incorrect function call, errorcode=1");
    15151517    }
    15161518    return v<=a.val;
     
    15201522    if (no_do_val()) {
    15211523        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1522         exit(1);
     1524        throw logic_error("incorrect function call, errorcode=1");
    15231525    }
    15241526    return val>=a.val;
     
    15281530    if (no_do_val()) {
    15291531        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1530         exit(1);
     1532        throw logic_error("incorrect function call, errorcode=1");
    15311533    }
    15321534    return val>=v;
     
    15361538    if (no_do_val()) {
    15371539        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1538         exit(1);
     1540        throw logic_error("incorrect function call, errorcode=1");
    15391541    }
    15401542    return v>=a.val;
     
    15441546    if (no_do_val()) {
    15451547        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1546         exit(1);
     1548        throw logic_error("incorrect function call, errorcode=1");
    15471549    }
    15481550    return val>a.val;
     
    15521554    if (no_do_val()) {
    15531555        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1554         exit(1);
     1556        throw logic_error("incorrect function call, errorcode=1");
    15551557    }
    15561558    return val>v;
     
    15601562    if (no_do_val()) {
    15611563        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1562         exit(1);
     1564        throw logic_error("incorrect function call, errorcode=1");
    15631565    }
    15641566    return v>a.val;
     
    15681570    if (no_do_val()) {
    15691571        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1570         exit(1);
     1572        throw logic_error("incorrect function call, errorcode=1");
    15711573    }
    15721574    return val<a.val;
     
    15761578    if (no_do_val()) {
    15771579        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1578         exit(1);
     1580        throw logic_error("incorrect function call, errorcode=1");
    15791581    }
    15801582    return val<v;
     
    15841586    if (no_do_val()) {
    15851587        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1586         exit(1);
     1588        throw logic_error("incorrect function call, errorcode=1");
    15871589    }
    15881590    return v<a.val;
     
    15931595    if (no_do_val()) {
    15941596        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1595         exit(1);
     1597        throw logic_error("incorrect function call, errorcode=1");
    15961598    }
    15971599    return val;
     
    16011603    if (no_do_val()) {
    16021604        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1603         exit(1);
     1605        throw logic_error("incorrect function call, errorcode=1");
    16041606    }
    16051607    val=v;
     
    16091611    if (no_do_adval()) {
    16101612        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1611         exit(1);
     1613        throw logic_error("incorrect function call, errorcode=1");
    16121614    }
    16131615    return adval;
     
    16171619    if (no_do_adval()) {
    16181620        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1619         exit(1);
     1621        throw logic_error("incorrect function call, errorcode=1");
    16201622    }
    16211623    FOR_I_EQ_0_LT_NUMDIR
     
    16261628    if (no_do_adval()) {
    16271629        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1628         exit(1);
     1630        throw logic_error("incorrect function call, errorcode=1");
    16291631    }
    16301632    if (p>=adouble::numDir)
     
    16321634        fprintf(DIAG_OUT, "Derivative array accessed out of bounds"\
    16331635                " while \"getADValue(...)\"!!!\n");
    1634         exit(-1);
     1636        throw logic_error("incorrect function call, errorcode=-1");
    16351637    }
    16361638    return adval[p];
     
    16401642    if (no_do_adval()) {
    16411643        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1642         exit(1);
     1644        throw logic_error("incorrect function call, errorcode=1");
    16431645    }
    16441646    if (p>=adouble::numDir)
     
    16461648        fprintf(DIAG_OUT, "Derivative array accessed out of bounds"\
    16471649                " while \"setADValue(...)\"!!!\n");
    1648         exit(-1);
     1650        throw logic_error("incorrect function call, errorcode=-1");
    16491651    }
    16501652    adval[p]=v;
     
    16541656    if (no_do_indo()) {
    16551657        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1656         exit(1);
     1658        throw logic_error("incorrect function call, errorcode=1");
    16571659    }
    16581660    return pattern;
     
    16621664    if (no_do_indo()) {
    16631665        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1664         exit(1);
     1666        throw logic_error("incorrect function call, errorcode=1");
    16651667    }
    16661668    if ( !pattern.empty() )
     
    16711673    if (no_do_indo()) {
    16721674        fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1673         exit(1);
     1675        throw logic_error("incorrect function call, errorcode=1");
    16741676    }
    16751677    if (likely( pattern != v)) {
     
    16891691    if (no_do_indo()) {
    16901692     fprintf(DIAG_OUT, "ADOL-C error: Tapeless: Incorrect mode, call setMode(enum Mode mode)\n");
    1691      exit(1);
     1693     throw logic_error("incorrect function call, errorcode=1");
    16921694    }
    16931695    size_t s=0;
Note: See TracChangeset for help on using the changeset viewer.