octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix for bug #41178


From: Rik
Subject: Fix for bug #41178
Date: Fri, 11 Dec 2015 12:11:26 -0800

12/11/15

The fix for bug #41178 was simply to move a function from a header file to
a .cc file.  Given that the function is just one line, shouldn't it be
declared as inline now that it is no longer in the header file?

--Rik


changeset:   20841:9851a296cf87
branch:      stable
user:        akira noda <address@hidden>
date:        Fri Aug 21 13:05:52 2015 -0400
summary:     Fix compilation of classdef with the clang compiler (bug #41178)

diff -r e6e09cebd3b2 -r 9851a296cf87 libinterp/octave-value/ov-classdef.cc
--- 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 @@ cdef_object_scalar::is_partially_constru
   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
diff -r e6e09cebd3b2 -r 9851a296cf87 libinterp/octave-value/ov-classdef.h
--- 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 @@ public:
 
   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 (); }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]