banditcpp / bandit

Human-friendly unit testing for C++11
https://banditcpp.github.io/bandit/
Other
259 stars 37 forks source link

Rename namespace 'option' into 'optionparser' to avoid conflict with … #171

Closed markandre13 closed 5 months ago

markandre13 commented 7 months ago

The full error I got was

In file included from ../upstream/bandit/bandit/bandit.h:13:
In file included from ../upstream/bandit/bandit/runner.h:5:
In file included from ../upstream/bandit/bandit/options.h:10:
../upstream/bandit/bandit/external/optionparser.h:227:11: error: redefinition of 'option' as different kind of symbol
  227 | namespace option
      |           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/getopt.h:54:8: note: previous definition is here
   54 | struct option {
      |        ^