From 2cf192f578de4f8f683602f92b6c1e2b9bdf8b46 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 4 Oct 2015 15:17:12 +0200 Subject: [PATCH] fixed testcase to take enum->int conversion into account --- example/example4.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/example/example4.cpp b/example/example4.cpp index 3293e9391..ae4dfb3d8 100644 --- a/example/example4.cpp +++ b/example/example4.cpp @@ -31,13 +31,13 @@ bool test_function1() { return false; } -float test_function2(int i) { - std::cout << "test_function(" << i << ")" << std::endl; - return i / 2.f; +void test_function2(EMyEnumeration k) { + std::cout << "test_function(enum=" << k << ")" << std::endl; } -void test_function3(EMyEnumeration k) { - std::cout << "test_function(enum=" << k << ")" << std::endl; +float test_function3(int i) { + std::cout << "test_function(" << i << ")" << std::endl; + return i / 2.f; } void init_ex4(py::module &m) {