Opened 16 years ago

Closed 9 years ago

#733 closed Bugs (wontfix)

Numbered headers don't work with "preferred" syntax

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

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

comment:3 by Marshall Clow, 9 years ago

Resolution: Nonewontfix
Status: newclosed

Boost.Signals is being deprecated. Please transition to Boost.Signals2

Note: See TracTickets for help on using tickets.