diff options
author | John Langford <jl@nyclamp.(none)> | 2014-01-08 19:15:57 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2014-01-08 19:15:57 +0400 |
commit | 7d1cebb2b1480c2fa63e60214f033452c4b2da7c (patch) | |
tree | c485d8316591ddc4cec138d12e12d9e4736f1a3a /vowpalwabbit/csoaa.cc | |
parent | cce351ad81aaa485f1d4e85f572d448b5f4a2631 (diff) |
void* removal in process
Diffstat (limited to 'vowpalwabbit/csoaa.cc')
-rw-r--r-- | vowpalwabbit/csoaa.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vowpalwabbit/csoaa.cc b/vowpalwabbit/csoaa.cc index 3e14cca1..4613ef13 100644 --- a/vowpalwabbit/csoaa.cc +++ b/vowpalwabbit/csoaa.cc @@ -17,6 +17,8 @@ license as described in the file LICENSE. using namespace std; +using namespace LEARNER; + namespace CSOAA { struct csoaa{ vw* all; @@ -996,9 +998,8 @@ namespace LabelDict { } } - void finish(void* d) + void finish(ldf* l) { - ldf* l=(ldf*)d; vw* all = l->all; clear_seq(*all, *l); l->ec_seq.delete_v(); @@ -1114,7 +1115,7 @@ namespace LabelDict { l->set_finish_example(finish_example); else l->set_finish_example(finish_multiline_example); - l->set_finish(finish); + l->set_finish<ldf,finish>(); l->set_end_examples(end_examples); l->set_end_pass(end_pass); return l; |