[ruby] For swig::from, use template specialization to convert shared_ptr<const T> to shared_ptr<T>.
This commit is contained in:
parent
b8d383cb4a
commit
f96c2ad73d
5 changed files with 72 additions and 0 deletions
7
Examples/test-suite/ruby/cpp11_shared_ptr_const_runme.rb
Normal file
7
Examples/test-suite/ruby/cpp11_shared_ptr_const_runme.rb
Normal 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 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue