From: Jeffrey Holle <jeff.holle@verizon.net>
To: gcc-help@gcc.gnu.org
Subject: question about HOWTO use std::set in non-trival way...
Date: Fri, 10 Sep 2004 23:34:00 -0000 [thread overview]
Message-ID: <chtdmp$8fc$1@sea.gmane.org> (raw)
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...
next reply other threads:[~2004-09-10 23:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-10 23:34 Jeffrey Holle [this message]
2004-09-10 23:59 ` Eljay Love-Jensen
2004-09-11 0:37 ` Jeffrey Holle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='chtdmp$8fc$1@sea.gmane.org' \
--to=jeff.holle@verizon.net \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).