question about HOWTO use std::set in non-trival way...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using gcc v3.4.1.

I've got an application that has a need for the following set container:

struct ltSubgraph : public binary_function<Edge,Edge,bool>
{
  ltSubgraph(const SubGraphT& subgraph);
  .....
};

typedef set<Edge,ltSubgraph> Edges;

The compare function requires that it has a SubGraphT object to implement its operator() method.

The question is how do I instanciate this container?

Just doing:
  Edges edges;

Produces errors for want of a ltSubgraph default constructor...


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux