$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.