2
0
mirror of https://github.com/boostorg/dll.git synced 2026-01-24 05:52:08 +00:00

Use std::filesystem and std::error_code if user asked for that (refs #40)

This commit is contained in:
Antony Polukhin
2018-11-11 01:46:13 +03:00
parent e3146fc544
commit 017d2436ac
54 changed files with 461 additions and 398 deletions

View File

@@ -13,7 +13,7 @@
#include <boost/dll/library_info.hpp>
#include <iostream>
void load_and_execute(const boost::filesystem::path libraries[], std::size_t libs_count) {
void load_and_execute(const boost::dll::fs::path libraries[], std::size_t libs_count) {
const std::string username = "User";
for (std::size_t i = 0; i < libs_count; ++i) {
@@ -36,7 +36,7 @@ void load_and_execute(const boost::filesystem::path libraries[], std::size_t lib
int main(int argc, char* argv[]) {
/*<-*/ BOOST_ASSERT(argc >= 3); /*->*/
std::vector<boost::filesystem::path> libraries;
std::vector<boost::dll::fs::path> libraries;
libraries.reserve(argc - 1);
for (int i = 1; i < argc; ++i) {
if (b2_workarounds::is_shared_library(argv[i])) {