Subject: Re: [boost] [gsoc-2013] Boost.Expected
From: Pierre T. (ptalbot_at_[hidden])
Date: 2013-04-20 03:59:51
On 04/20/2013 12:33 AM, Vicente J. Botet Escriba wrote:
> Le 19/04/13 19:37, Steven Watanabe a écrit :
>> On 04/19/2013 10:03 AM, Vicente J. Botet Escriba wrote:
>>> Le 19/04/13 17:21, Pierre T. a écrit :
>>>> I'm on Linux (Ubuntu). But on this same platform, I already successful
>>>> run bjam with another project.
>>> I suspect that your program is expecting you give the password, but
>>> you use b2 you can not even see the request for it. Steve is there a
>>> to give a file as input to the test?
>>> How we should bjam setup this kind of examples so that we can interact
>>> with stdin/stdout?
>> Programs run under a build tool should
>> not require any action from the user.
> Agreed. Should we use instead for these kind of examples just the exe
> rule and execute the example off-line?
Good to know.
>> You could try redirecting stdin like this:
>> path-constant input-file : input.txt ;
>> run mytest.cpp : < \"$(input-file)\" ;
>> I haven't tested whether this actually works, though.
> Thanks, I will try it.
I removed the std::cin instruction and replace it with a string array,
it works now :-)
If you have any other comments, please let me know.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk