Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2006-09-29 11:20:37

Bugs item #1567812, was opened at 2006-09-29 11:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: signals
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Douglas Gregor (dgregor)
Assigned to: Douglas Gregor (dgregor)
Summary: Numbered headers don't work with "preferred" syntax

Initial Comment:

I'd like to write the "Preferred syntax" of a signal while
including a header for a fixed number of parameters.
This works for boost::function, but not for boost::signal.
Surprisingly, it seems that signal1.hpp does only generate
a signal1 template, in contrast to function1.hpp. :[
Couldn't that be aligned to boost::function?

#include <boost/function/function1.hpp>
typedef boost::function1<void, void> F1; // compiles
typedef boost::function<void (void)> F2; // compiles

#include <boost/signals/signal1.hpp>
typedef boost::signal1<void, void> S1; // compiles
typedef boost::signal<void (void)> S2; // does not compile

-- David


You can respond by visiting:

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at