A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracing API has changed. Disable it until its usage is fixed.
[loba.git]
/
options.cpp
diff --git
a/options.cpp
b/options.cpp
index 0ed04acfde62e493404a795f5d45920f8eadfeea..b31888f90f13b0b2b96e99c12687ffdbfae923e0 100644
(file)
--- a/
options.cpp
+++ b/
options.cpp
@@
-166,25
+166,24
@@
const char* opt_helper::on_off(bool b)
const char* opt_helper::descr(const char* str)
{
const char* opt_helper::descr(const char* str)
{
-
std::string& res = descr_
str;
-
res = str
;
-
res
.resize(DATA_DESCR_WIDTH, '.');
- return
res
.c_str();
+
descr_str =
str;
+
descr_str.push_back(' ')
;
+
descr_str
.resize(DATA_DESCR_WIDTH, '.');
+ return
descr_str
.c_str();
}
template <typename T>
const char* opt_helper::val_or_string(const T& val, const char* str,
const T& deflt)
{
}
template <typename T>
const char* opt_helper::val_or_string(const T& val, const char* str,
const T& deflt)
{
- std::string& res = val_or_string_str;
if (val != deflt) {
std::ostringstream oss;
oss << val;
if (val != deflt) {
std::ostringstream oss;
oss << val;
-
res
= oss.str();
+
val_or_string_str
= oss.str();
} else {
} else {
-
res
= str;
+
val_or_string_str
= str;
}
}
- return
res
.c_str();
+ return
val_or_string_str
.c_str();
}
template <typename T>
}
template <typename T>