Skip to content

Commit 134ec15

Browse files
unsigned long seems to be too ambiguous for clang switch to uint64_t
1 parent 071b870 commit 134ec15

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/dynamic-graph/command-setter.t.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ Value Setter<E, unsigned>::doExecute() {
9090
// Template specialization: unsigned long
9191
//
9292
template <class E>
93-
class Setter<E, unsigned long> : public Command {
93+
class Setter<E, uint64_t> : public Command {
9494
public:
9595
/// Pointer to method that sets parameter of type unsigned long
96-
typedef void (E::*SetterMethod)(const unsigned long &);
96+
typedef void (E::*SetterMethod)(const uint64_t &);
9797
/// Constructor
9898
Setter(E &entity, SetterMethod setterMethod, const std::string &docString);
9999

@@ -105,17 +105,17 @@ class Setter<E, unsigned long> : public Command {
105105
}; // Class Setter
106106

107107
template <class E>
108-
Setter<E, unsigned long>::Setter(E &entity, SetterMethod setterMethod,
108+
Setter<E, uint64_t>::Setter(E &entity, SetterMethod setterMethod,
109109
const std::string &docString)
110110
: Command(entity, boost::assign::list_of(Value::UNSIGNEDLONGINT),
111111
docString),
112112
setterMethod_(setterMethod) {}
113113

114114
template <class E>
115-
Value Setter<E, unsigned long>::doExecute() {
115+
Value Setter<E, uint64_t>::doExecute() {
116116
const std::vector<Value> &values = getParameterValues();
117117
// Get parameter
118-
unsigned long value = values[0].value();
118+
uint64_t value = values[0].value();
119119
E &entity = static_cast<E &>(owner());
120120
(entity.*setterMethod_)(value);
121121
return Value();

0 commit comments

Comments
 (0)