projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build fix: g++ 4.8 incorrectly disambiguates enum and member
[lttng-tools.git]
/
src
/
bin
/
lttng
/
utils.hpp
diff --git
a/src/bin/lttng/utils.hpp
b/src/bin/lttng/utils.hpp
index 990bad57517bf33031c059fe667be5075318e19d..262775d1d6bf0513e75f83c1ff0a939c68266b7d 100644
(file)
--- a/
src/bin/lttng/utils.hpp
+++ b/
src/bin/lttng/utils.hpp
@@
-26,13
+26,19
@@
extern pid_t sessiond_pid;
struct cmd_struct;
struct session_spec {
struct cmd_struct;
struct session_spec {
- enum type {
+ enum
class
type {
NAME,
GLOB_PATTERN,
ALL,
};
NAME,
GLOB_PATTERN,
ALL,
};
- type type;
+ explicit session_spec(type spec_type, const char *name_or_pattern = nullptr) noexcept :
+ type_(spec_type), value(name_or_pattern)
+ {
+ }
+
+ /* Disambiguate type enum from the member for buggy g++ versions. */
+ type type_;
const char *value;
};
const char *value;
};
This page took
0.027027 seconds
and
4
git commands to generate.