mirror of
https://github.com/boostorg/process.git
synced 2026-01-22 17:32:42 +00:00
Compare commits
3 Commits
boost-1.64
...
boost-1.64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4075371cbe | ||
|
|
d5d2c7b2ff | ||
|
|
1ac22670c7 |
@@ -31,10 +31,11 @@ inline boost::filesystem::path search_path(
|
||||
{
|
||||
for (const boost::filesystem::path & pp : path)
|
||||
{
|
||||
auto p = pp / filename;
|
||||
auto full = pp / filename;
|
||||
std::array<std::string, 4> extensions {{ "", ".exe", ".com", ".bat" }};
|
||||
for (boost::filesystem::path ext : extensions)
|
||||
{
|
||||
auto p = full;
|
||||
p += ext;
|
||||
boost::system::error_code ec;
|
||||
bool file = boost::filesystem::is_regular_file(p, ec);
|
||||
|
||||
Reference in New Issue
Block a user