clang++ using -stdlib=libc++ defines const_reference as a class, to map boolean vectors onto a bit set. Because swig does not "see" the type as "const &" it generates incorrect code for this case, generating a declaration like: const_reference result; When const_reference is a typedef to 'bool' as is the case with stdlibc++ this works. When this is actually a constant reference, this is clearly invalid since it is not initialized. For libc++, this is a class which cannot be default constructed, resulting in an error. The fix is to explicitly define the various accessor extensions as having a bool return type for this specialization. |
||
|---|---|---|
| .. | ||
| arrays_java.i | ||
| boost_intrusive_ptr.i | ||
| boost_shared_ptr.i | ||
| director.swg | ||
| enums.swg | ||
| enumsimple.swg | ||
| enumtypesafe.swg | ||
| enumtypeunsafe.swg | ||
| java.swg | ||
| javahead.swg | ||
| javakw.swg | ||
| std_auto_ptr.i | ||
| std_common.i | ||
| std_deque.i | ||
| std_except.i | ||
| std_map.i | ||
| std_pair.i | ||
| std_shared_ptr.i | ||
| std_string.i | ||
| std_vector.i | ||
| std_wstring.i | ||
| stl.i | ||
| typemaps.i | ||
| various.i | ||