|
Boost : |
Subject: Re: [boost] Boost.Outcome review - First questions
From: Peter Dimov (lists_at_[hidden])
Date: 2017-05-22 00:21:14
Niall Douglas wrote:
> >> it confuses Visual Studio's intellisense,
...
> Are you guys doing something unusual?
This is what I just did: in VS2017, I pasted this code:
#include <boost/outcome/outcome.hpp>
#include <system_error>
#include <iostream>
int main()
{
// boost::outcome::result<int> x( std::errc::operation_not_permitted );
boost::outcome::outcome<int> x = boost::outcome::make_errored_outcome(
std::errc::operation_not_permitted );
if( x.has_value() )
{
std::cout << "Value: " << x.value() << std::endl;
}
else
{
std::cout << "Error: " << x.error() << std::endl;
}
#if defined(_WINDOWS_)
std::cout << "<windows.h> has been included\n";
#endif
}
and when I type x., Intellisense doesn't want to display anything.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk