[ruby] For swig::from, use template specialization to convert shared_ptr<const T> to shared_ptr<T>.

This commit is contained in:
Takashi Tamura 2017-03-03 12:50:23 +09:00
commit f96c2ad73d
5 changed files with 72 additions and 0 deletions

View file

@ -31,6 +31,7 @@ CPP_TEST_CASES = \
CPP11_TEST_CASES = \
cpp11_hash_tables \
cpp11_shared_ptr_const
C_TEST_CASES += \
li_cstring \

View file

@ -0,0 +1,7 @@
require "swig_assert"
require "cpp11_shared_ptr_const"
include Cpp11_shared_ptr_const
simple_assert_equal(7, foo_vec()[0].get_m )
simple_assert_equal(7, const_foo_vec()[0].get_m )