[OCaml] Re-enable the using_protected unit test
Use the [member-variable] syntax in using_protected_runme.ml as required by the OCaml module's documentation and implementation. Fix the return type for vec_write() in example.h in the OCaml stl example.
This commit is contained in:
parent
96c5a95878
commit
a851e0a9ac
4 changed files with 3 additions and 4 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
using std::string;
|
||||
|
||||
double vec_write(std::vector<string> v) {
|
||||
void vec_write(std::vector<string> v) {
|
||||
int n = 0;
|
||||
for( std::vector<string>::iterator i = v.begin();
|
||||
i != v.end();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue