Mercurial > octave
changeset 20841:9851a296cf87 stable
Fix compilation of classdef with the clang compiler (bug #41178)
* ov-classdef.cc, ov-classdef.h (cdef_object_scalar::mark_as_constructed):
Move function definition out of header file to avoid dependency on incomplete
type, compilation error with clang.
author | akira noda <you.akira.noda@gmail.com> |
---|---|
date | Fri, 21 Aug 2015 13:05:52 -0400 |
parents | e6e09cebd3b2 |
children | e429ddca0d51 ef9b2a88fbb5 |
files | libinterp/octave-value/ov-classdef.cc libinterp/octave-value/ov-classdef.h |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.cc Fri Dec 11 11:30:25 2015 -0500 +++ b/libinterp/octave-value/ov-classdef.cc Fri Aug 21 13:05:52 2015 -0400 @@ -1937,6 +1937,12 @@ return true; } +void +cdef_object_scalar::mark_as_constructed (const cdef_class& cls) +{ + ctor_list.erase (cls); +} + handle_cdef_object::~handle_cdef_object (void) { #if DEBUG_TRACE
--- a/libinterp/octave-value/ov-classdef.h Fri Dec 11 11:30:25 2015 -0500 +++ b/libinterp/octave-value/ov-classdef.h Fri Aug 21 13:05:52 2015 -0400 @@ -438,7 +438,7 @@ void mark_as_constructed (void) { ctor_list.clear (); } - void mark_as_constructed (const cdef_class& cls) { ctor_list.erase (cls); } + void mark_as_constructed (const cdef_class& cls); bool is_constructed (void) const { return ctor_list.empty (); }