COIN-OR::LEMON - Graph Library

Changeset 1371:0898f3371d1d in lemon


Ignore:
Timestamp:
01/27/17 20:35:13 (8 years ago)
Author:
Gabriel Gouvine <gabriel.gouvine.GIT@…>
Branch:
default
Phase:
public
Message:

Forbid copy construction of StaticDigraph?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/static_graph.h

    r1328 r1371  
    3030
    3131  class StaticDigraphBase {
     32
    3233  public:
    3334
     
    297298  /// \sa concepts::Digraph
    298299  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
    299308  public:
    300309
Note: See TracChangeset for help on using the changeset viewer.