Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1567812&group_id=7586

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:
Hi,

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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1567812&group_id=7586

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk