COIN-OR::LEMON - Graph Library

Changeset 490:ceb56ff9d07f in lemon-0.x


Ignore:
Timestamp:
04/30/04 01:24:42 (20 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@648
Message:

The -W gcc option _does_ matter even if you use -Wall!
Minor changes.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/include/error.h

    r489 r490  
    77//! \brief Basic error handling (signaling) routines.
    88
     9#include <exception>
    910#include <string>
    1011#include <sstream>
     
    2829    Exception() {}
    2930    explicit Exception(const std::string &s) { buf << s; }
    30     Exception(const Exception &e) { buf << e.buf.str(); }
     31    Exception(const Exception &e) : std::exception() {
     32      buf << e.buf.str();
     33    }
    3134    virtual ~Exception() throw() {}
    3235   
     
    5760
    5861# define FIXME(msg) \
    59     do { throw ::hugo::Exception("FIXME: " msg) << " (in: "    \
    60       << __FILE__ << ", " << __LINE__ << ")";                  \
     62    do { throw ::hugo::Exception() << "FIXME: " msg " (in: "    \
     63      __FILE__ ", " << __LINE__ << ")";                         \
    6164    } while(false)
    6265
  • src/test/makefile

    r489 r490  
    11INCLUDEDIRS ?= -I../include
    2 CXXFLAGS += -Wall -O3 -ansi -pedantic $(INCLUDEDIRS)
     2CXXFLAGS += -W -Wall -O3 -ansi -pedantic $(INCLUDEDIRS)
    33#LEDAROOT ?= /ledasrc/LEDA-4.1
    44
Note: See TracChangeset for help on using the changeset viewer.