Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] native back into local::stream_protocol
From: Etienne Philip Pretorius (icewolfhunter_at_[hidden])
Date: 2010-04-29 09:32:06


Christopher Yeleighton wrote:
> Etienne Philip Pretorius <icewolfhunter <at> gmail.com> writes:
>
>
>> parent_.assign(boost::asio::local::stream_protocol,
>> boost::lexical_cast<int>(argv[0]));
>>
>> Compiler error:
>> g++ -c -g -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o
>> build/Debug/GNU-Linux-x86/main.o main.cpp
>> main.cpp: In function ‘int main(int, char**)’:
>> main.cpp:30: error: expected primary-expression before ‘,’ token
>>
>>
>
> stream_protocol is a type name. You cannot pass a type name as an argument to a
> function.
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
What would you use? I have tried stream_protocol::type...

Etienne Pretorius


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