# HG changeset patch
# User Gabriel Gouvine <gabriel.gouvine.GIT@gmx.com>
# Date 1485545713 -3600
# Fri Jan 27 20:35:13 2017 +0100
# Node ID fd04b9f2058dc6979eb27fe01835b9e5c38e9034
# Parent f51c01a1b88eead63515a8b22f6f380595245a42
Forbid copy construction of StaticDigraph
diff -r f51c01a1b88e -r fd04b9f2058d lemon/static_graph.h
|
a
|
b
|
|
| 29 | 29 | namespace lemon { |
| 30 | 30 | |
| 31 | 31 | class StaticDigraphBase { |
| | 32 | |
| 32 | 33 | public: |
| 33 | 34 | |
| 34 | 35 | StaticDigraphBase() |
| … |
… |
|
| 296 | 297 | /// |
| 297 | 298 | /// \sa concepts::Digraph |
| 298 | 299 | class StaticDigraph : public ExtendedStaticDigraphBase { |
| | 300 | |
| | 301 | private: |
| | 302 | /// Graphs are \e not copy constructible. Use DigraphCopy instead. |
| | 303 | StaticDigraph(const StaticDigraph &) : ExtendedStaticDigraphBase() {}; |
| | 304 | /// \brief Assignment of a graph to another one is \e not allowed. |
| | 305 | /// Use DigraphCopy instead. |
| | 306 | void operator=(const StaticDigraph&) {} |
| | 307 | |
| 299 | 308 | public: |
| 300 | 309 | |
| 301 | 310 | typedef ExtendedStaticDigraphBase Parent; |