X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FVariables.hh;h=a732b41f9decd131c27abf18d15b0e588bbaceda;hb=fc1569e67cfda71bc8c406617a5e0b05f28f1b47;hp=de9da468d9041277eff4c05aecfec9bf5a0c7853;hpb=9cb871b939efe93e35dd96808d25089399acfc46;p=senf.git diff --git a/senf/Utils/Console/Variables.hh b/senf/Utils/Console/Variables.hh index de9da46..a732b41 100644 --- a/senf/Utils/Console/Variables.hh +++ b/senf/Utils/Console/Variables.hh @@ -82,7 +82,7 @@ namespace factory { int var; ScopedDirectory<> dir; - dir.add("var", var); + dir.add("var", fty::Variable(var)); \endcode Variables should be registered only with a ScopedDirectory declared in the same scope @@ -97,7 +97,7 @@ namespace factory { boost::cref(). Such a variable cannot be changed only queried. Therefore, it does not have the parser() and typeName() attributes. \code - dir.add("const_var", boost::cref(var)) + dir.add("const_var", fty::Variable(boost::cref(var))); \endcode \ingroup console_commands