Skip to content

Commit

Permalink
move system_error out of common header
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jul 27, 2024
1 parent 2deeba1 commit 540239c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion include/libgetargv++.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "iter.hpp"
#include <string>
#include <system_error>
#include <vector>

/** \brief This namespace isolates the library from your code.
Expand Down
3 changes: 2 additions & 1 deletion src/argv.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "../include/libgetargv++.hpp"
#include <system_error>

namespace Getargv {

Expand Down Expand Up @@ -49,7 +50,7 @@ namespace Getargv {
Argv::Argv(pid_t pid, unsigned int skip, bool nuls) noexcept(false) : ArgvResult() {
ffi::GetArgvOptions const options = {
#if defined(__cplusplus) && (__cplusplus >= 202002L)
.skip = static_cast<ffi::uint>(skip),
.skip = static_cast<ffi::uint>(skip),
.pid = pid,
.nuls = nuls,
#else
Expand Down
1 change: 1 addition & 0 deletions src/argvargc.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "../include/libgetargv++.hpp"
#include <algorithm>
#include <system_error>

namespace Getargv {

Expand Down

0 comments on commit 540239c

Please sign in to comment.