Opened 16 years ago

Last modified 9 years ago

#733 closed Bugs (wontfix)

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

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

Description (last modified by Douglas Gregor)

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 (2)

comment:1 by Marshall Clow, 15 years ago

Owner: changed from Douglas Gregor to doug_gregor
Severity: Problem
Status: assignednew

Assigned to "doug_gregor" instead of nonexistent user "dgregor"

comment:2 by Douglas Gregor, 14 years ago

Description: modified (diff)
Owner: changed from doug_gregor to Douglas Gregor
Note: See TracTickets for help on using tickets.