X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=example-codegen%2Fclient.cpp;h=cdeb124f0ccf9dd5af71fd74743df9fe19884a19;hp=260a60cb840c289d7f47291d64690bc6e6a5a09b;hb=1f0aa49ffeccf4ac8562a82a941b17c63503c4cc;hpb=472456caf92ef55f7ab344e8b0087d64c8701e23 diff --git a/example-codegen/client.cpp b/example-codegen/client.cpp index 260a60c..cdeb124 100644 --- a/example-codegen/client.cpp +++ b/example-codegen/client.cpp @@ -7,7 +7,8 @@ #include // include library header -#include "codegen_client.hxx" +#include "default_client.hxx" +#include "other_client.hxx" int main(int argc, char** argv) { @@ -24,11 +25,15 @@ int main(int argc, char** argv) throwok=(std::string(e.what())=="throw me around"); } + Foo foo={10,10}; + return ( throwok && ( cc.testfunc("hello") == "hello, testfunc() was here" ) && ( cc.testfunc_ref("hello") == "hello, testfunc() was here" ) && ( cc.t2(10) == 10 ) && ( cc_other.t3(10, 20, "hello", std::pair(10,20)) ) - && ( cc_other.t3(10) == 10 ) ) + && ( cc_other.t3(10) == 10 ) + && ( cc_other.t3(std::vector(1,10)) ) + && ( cc_other.t3(foo) ) ) ? EXIT_SUCCESS : EXIT_FAILURE; }