Skip to content

Commit

Permalink
modify fs to rpcfs.
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 19, 2020
1 parent 5db1278 commit dc105f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ namespace rest_rpc {
boost::asio::ssl::context_base::password_purpose purpose) {return "123456"; });

boost::system::error_code ec;
if (fs::exists(ssl_conf.cert_file, ec)) {
if (rpcfs::exists(ssl_conf.cert_file, ec)) {
ssl_context.use_certificate_chain_file(ssl_conf.cert_file);
}

if (fs::exists(ssl_conf.key_file, ec))
if (rpcfs::exists(ssl_conf.key_file, ec))
ssl_context.use_private_key_file(ssl_conf.key_file, boost::asio::ssl::context::pem);

//ssl_context_callback(ssl_context);
Expand Down
8 changes: 4 additions & 4 deletions include/use_asio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ using string_view = boost::string_view;
#if defined (__GNUC__)
#if __GNUC__ < 8
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
namespace rpcfs = std::experimental::filesystem;
#else
#include <filesystem>
namespace fs = std::filesystem;
namespace rpcfs = std::filesystem;
#endif
#else
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
namespace rpcfs = boost::filesystem;
#endif
#else
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
namespace rpcfs = boost::filesystem;
#endif

0 comments on commit dc105f4

Please sign in to comment.