Commit dfce5c7f authored by Robert Bradshaw's avatar Robert Bradshaw

Require c++0x for unique_ptr.

parent d01f6d4a
...@@ -905,7 +905,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -905,7 +905,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if constructor: if constructor:
arg_decls = [] arg_decls = []
arg_names = [] arg_names = []
for arg in constructor.type.original_args[:len(constructor.type.args)-constructor.type.optional_arg_count]: for arg in constructor.type.original_args[
:len(constructor.type.args)-constructor.type.optional_arg_count]:
arg_decls.append(arg.declaration_code()) arg_decls.append(arg.declaration_code())
arg_names.append(arg.cname) arg_names.append(arg.cname)
if constructor.type.optional_arg_count: if constructor.type.optional_arg_count:
......
# mode: run # mode: run
# tag: cpp, werror # tag: cpp, werror
# cython: experimental_cpp_class_def=True # cython: experimental_cpp_class_def=True
# distutils: extra_compile_args=-std=c++0x
cdef double pi cdef double pi
from math import pi from math import pi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment