Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] native back into local::stream_protocol
From: Christopher Yeleighton (giecrilj_at_[hidden])
Date: 2010-04-29 04:02:04


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