Skip to content
Snippets Groups Projects
Commit bd108ed0 authored by Nicolas Mansard's avatar Nicolas Mansard
Browse files

Added an alias for EMPTY_ARG for readibility.

parent 4f3e4f04
No related branches found
No related tags found
No related merge requests found
......@@ -38,15 +38,13 @@
namespace dynamicgraph {
namespace command {
#define COMMAND_EMPTY_ARG std::vector<Value::Type>()
template <class E >
struct CommandVoid0
: public Command
{
CommandVoid0(E& entity, boost::function<void(void)> function,
const std::string& docString)
:Command(entity, COMMAND_EMPTY_ARG, docString)
:Command(entity, EMPTY_ARG, docString)
,fptr(function)
{}
......@@ -97,8 +95,6 @@ namespace dynamicgraph {
namespace dynamicgraph {
namespace command {
#define COMMAND_EMPTY_ARG std::vector<Value::Type>()
template <class E,typename T >
struct CommandVoid1
: public Command
......
......@@ -70,6 +70,8 @@ namespace dynamicgraph {
std::vector<Value::Type> valueTypeVector_;
std::vector<Value> valueVector_;
std::string docstring_;
public:
static const std::vector<Value::Type> EMPTY_ARG;
};
} // namespace command
} // namespace dynamicgraph
......
......@@ -22,6 +22,9 @@
namespace dynamicgraph {
namespace command {
const std::vector<Value::Type> Command::EMPTY_ARG = std::vector<Value::Type>();
Command::~Command() {}
Command::Command(Entity& entity,
const std::vector<Value::Type>& valueTypes,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment