[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

@ -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 )