Mercurial > octave-nkf
comparison libinterp/octave-value/ov-classdef.cc @ 20523:a142b62527ef
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 | 7ac907da9fba |
children | dd6345fd8a97 |
comparison
equal
deleted
inserted
replaced
20521:4bb41929286b | 20523:a142b62527ef |
---|---|
1942 lit != it->second.end (); ++lit) | 1942 lit != it->second.end (); ++lit) |
1943 if (! is_constructed_for (*lit)) | 1943 if (! is_constructed_for (*lit)) |
1944 return false; | 1944 return false; |
1945 | 1945 |
1946 return true; | 1946 return true; |
1947 } | |
1948 | |
1949 void | |
1950 cdef_object_scalar::mark_as_constructed (const cdef_class& cls) | |
1951 { | |
1952 ctor_list.erase (cls); | |
1947 } | 1953 } |
1948 | 1954 |
1949 handle_cdef_object::~handle_cdef_object (void) | 1955 handle_cdef_object::~handle_cdef_object (void) |
1950 { | 1956 { |
1951 #if DEBUG_TRACE | 1957 #if DEBUG_TRACE |