I'm learning how to use Microsoft's cpprest sdk and no matter what I do, Visual Studio can't seem to find open_ostream. Is there a specific namespace I need to add before using open_ostream? I've never used open_ostream before.
// What I'm including.
#include <fstream>
#include <opencv2\core\core.hpp>
#include <cpprest\http_client.h>
#include <cpprest\filestream.h>
#include <cpprest/http_listener.h>
#include <cpprest/json.h>
#include <cpprest/uri.h>
#include <cpprest/ws_client.h>
#include <cpprest/containerstream.h>
#include <cpprest/interopstream.h>
#include <cpprest/rawptrstream.h>
#include <cpprest/producerconsumerstream.h>
// in the main function, this is where I run into the open_ostream issue...
pplx::task<void> requestTask = std::fstream::open_ostream(U("results.html")).then([=](ostream outFile)
// removed the rest of the code in order to make this message shorter
Ahhh I feel stupid. I went back to the MS article after reading your post and noticed the namespace. I'll make sure to look more carefully next time. Thanks mbozzi!