Skip to content

Commit c30df76

Browse files
authored
Fix MacOS compilation on C++11 and C++14 (#93)
Fixes #92
1 parent 013633d commit c30df76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/dll/detail/posix/program_location_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace boost { namespace dll { namespace detail {
3232

3333
std::string p;
3434
p.resize(size);
35-
if (_NSGetExecutablePath(p.data(), &size) != 0) {
35+
if (_NSGetExecutablePath(&p[0], &size) != 0) {
3636
ec = std::make_error_code(
3737
std::errc::bad_file_descriptor
3838
);

0 commit comments

Comments
 (0)