Re: [Boost-bugs] [Boost C++ Libraries] #733: Numbered headers don't work with "preferred" syntax

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #733: Numbered headers don't work with "preferred" syntax
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-29 18:27:23


#733: Numbered headers don't work with "preferred" syntax
----------------------+-----------------------------------------------------
  Reporter: dgregor | Owner: dgregor
      Type: Bugs | Status: new
 Milestone: | Component: signals
   Version: None | Severity: Problem
Resolution: None | Keywords:
----------------------+-----------------------------------------------------
Changes (by dgregor):

  * owner: doug_gregor => dgregor

Old 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
>
> }}}

New 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

 }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/733#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC