Opened 16 years ago

Last modified 9 years ago

#733 closed Bugs (wontfix)

Numbered headers don't work with "preferred" syntax — at Initial Version

Reported by: Douglas Gregor Owned by: Douglas Gregor
Milestone: Component: signals
Version: None Severity: Problem
Keywords: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.