dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Possibility to pass class method reference
[command.git]
/
tests
/
option
/
should_throw_exception_on_missing_value.cpp
diff --git
a/tests/option/should_throw_exception_on_missing_value.cpp
b/tests/option/should_throw_exception_on_missing_value.cpp
index f872ed12292e7ef1dc77b30d80d970d4586118ea..4b901fb648d50d343703a5e9438763861ad55145 100644
(file)
--- a/
tests/option/should_throw_exception_on_missing_value.cpp
+++ b/
tests/option/should_throw_exception_on_missing_value.cpp
@@
-9,10
+9,10
@@
using namespace std;
using namespace command;
using namespace std;
using namespace command;
-void function(int) { }
+void
_
function(int) { }
int main() {
int main() {
- Option<int> option(NAME, "Option should throw exception on missing value", function);
+ Option<int> option(NAME, "Option should throw exception on missing value",
_
function);
try {
if (option.understand(BAD_OPTION)) {
try {
if (option.understand(BAD_OPTION)) {