Switched to smart_copy to support non-trivial scalar types
1 file changed