
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.