Changeset 1774:9fd56d75293e in lemon-0.x
- Timestamp:
- 11/04/05 17:40:54 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2306
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/list_graph.h
r1770 r1774 31 31 #include <lemon/bits/undir_graph_extender.h> 32 32 33 #include <lemon/error.h> 34 33 35 #include <list> 34 36 … … 441 443 protected AlterationNotifier<Edge>::ObserverBase 442 444 { 445 public: 446 447 class UnsupportedOperation : public LogicError { 448 public: 449 virtual const char* exceptionName() const { 450 return "lemon::ListGraph::Snapshot::UnsupportedOperation"; 451 } 452 }; 453 454 443 455 protected: 444 456 … … 451 463 added_nodes.push_back(n); 452 464 }; 453 ///\bug Exception...454 ///455 465 virtual void erase(const Node&) 456 466 { 457 exit(1);467 throw UnsupportedOperation(); 458 468 } 459 469 virtual void add(const Edge& n) { 460 470 added_edges.push_back(n); 461 471 }; 462 ///\bug Exception...463 ///464 472 virtual void erase(const Edge&) 465 473 { 466 exit(1);474 throw UnsupportedOperation(); 467 475 } 468 476 … … 489 497 g=0; 490 498 } 491 499 492 500 public: 493 501 ///Default constructur.
Note: See TracChangeset
for help on using the changeset viewer.