Commit 1d7a34fd authored by Dominik Charousset's avatar Dominik Charousset

moved operator+(spawn_options) to cppa namespace

this patch fixes an issue with argument-dependend lookup and
anonymous namespaces
parent 97bfd91d
......@@ -55,19 +55,20 @@ enum class spawn_options : int {
};
#endif
#ifndef CPPA_DOCUMENTATION
namespace {
#endif
/**
* @brief Concatenates two {@link spawn_options}.
* @relates spawn_options
*/
constexpr spawn_options operator+(const spawn_options& lhs,
const spawn_options& rhs) {
return static_cast<spawn_options>(static_cast<int>(lhs) | static_cast<int>(rhs));
return static_cast<spawn_options>( static_cast<int>(lhs)
| static_cast<int>(rhs));
}
#ifndef CPPA_DOCUMENTATION
namespace {
#endif
/**
* @brief Denotes default settings.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment