Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] 1.55.0 beta 1 release candidates available for testing
From: Richard Rowlands (richard.rowlands_at_[hidden])
Date: 2013-10-09 09:14:36


Hello,

I'm trying to build some projects using Boost 1.55 and VS2013 RC targeting
Visual Studio 2013 RC (v120), i.e. MSVC12. I'm currently getting a problem
with Boost.Signals2. After much head scratching, I created a test project
lifting the simplest Hello World example from the Boost.Signals2 docs. It
works, but adapting to receive the "Hello, World!" string, it fails. Also
note, oddly, adding the result_type typedef is required whereas it is not
under MSVC11. Any ideas?

BTW: the code works fine in MSVC11 ...

struct HelloWorld
{
typedef void result_type; // <--- This seems to be required for MSVC12 RC

void operator()(std::string msg) const
{
std::cout << msg << std::endl;
}
};

int main()
{
boost::signals2::signal<void (const std::string& msg)> sig;

// Connect a HelloWorld slot
HelloWorld hello;
sig.connect(hello);

// Call all of the slots
sig("Hello, World!");

return 0;
}

Compiler error:

1>c:\program files (x86)\boost\include\boost-1_55\boost\bind\bind.hpp(192):
error C2064: term does not evaluate to a function taking 0 arguments
1> class does not define an 'operator()' or a user defined
conversion operator to a pointer-to-function or reference-to-function that
takes appropriate number of arguments
1> c:\program files
(x86)\boost\include\boost-1_55\boost\bind\bind_template.hpp(47) : see
reference to function template instantiation 'void
boost::_bi::list0::operator ()<F,boost::_bi::list1<const A1
&>>(boost::_bi::type<void>,F &,A &,int)' being compiled
1> with
1> [
1> F=HelloWorld
1> , A1=std::string
1> , A=boost::_bi::list1<const std::string &>
1> ]
.
...blah blah

I've added the full compiler error as an attachment

On 8 October 2013 09:50, Akira Takahashi <faithandbrave_at_[hidden]> wrote:

> 2013/10/8 Domagoj Saric <dsaritz_at_[hidden]>
>
>> On 3.10.2013. 18:19, Marshall Clow wrote:> Release candidate files for
>> 1.55.0 beta 1 are available at
>>
>> > http://boost.cowic.de/rc/
>> >
>> > As always, the release managers would appreciate it if you download
>> > the candidate of your choice and give building it a try. Please report
>> > both success and failure, and anything else that is noteworthy.
>>
>> With MSVC12 RC:
>> * 1.54 and 1.55 b1 RC - lots of:
>> .\boost/iterator/detail/**facade_iterator_category.hpp(**166) : error
>> C2039: 'assert_not_arg' : is not a member of 'boost::mpl'
>>
>
> This issue fixed by this commit.
> http://lists.boost.org/boost-commit/2013/05/46330.php
>
> However, not merge to release branch yet.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>





Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net