File: 50_namespace-std-for-string.patch

package info (click to toggle)
matwrap 0.57-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 464 kB
  • ctags: 238
  • sloc: perl: 2,774; cpp: 622; makefile: 170; sh: 32
file content (11 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- matwrap-0.57.orig/share/matwrap/wrap_octave.pl
+++ matwrap-0.57/share/matwrap/wrap_octave.pl
@@ -648,7 +648,7 @@
 
 $typemap_get_scalar{'char *'} = sub {
   my ($arg, $argname) = @_;	# Name the arguments.
-  ("  string _$argname = $arg->{oct_expr}.string_value();\n" .
+  ("  std::string _$argname = $arg->{oct_expr}.string_value();\n" .
 				# Get the string.
    "  _$argname += '\\0';\n" .	# Make sure it's null terminated.
    "  $arg->{c_var_name} = (char *)_$argname.data();\n");