stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r538378 - in /incubator/stdcxx/trunk: include/stdexcept src/logic_error.cpp
Date Tue, 15 May 2007 23:18:06 GMT
Author: sebor
Date: Tue May 15 16:18:05 2007
New Revision: 538378

URL: http://svn.apache.org/viewvc?view=rev&rev=538378
Log:
2007-05-15  Martin Sebor  <sebor@roguewave.com>

	STDCXX-416
	* stdexcept (logic_error): Declared dtor.
	* logic_error.cpp: New file.
	(logic_error): Defined class dtor

Added:
    incubator/stdcxx/trunk/src/logic_error.cpp   (with props)
Modified:
    incubator/stdcxx/trunk/include/stdexcept

Modified: incubator/stdcxx/trunk/include/stdexcept
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/stdexcept?view=diff&rev=538378&r1=538377&r2=538378
==============================================================================
--- incubator/stdcxx/trunk/include/stdexcept (original)
+++ incubator/stdcxx/trunk/include/stdexcept Tue May 15 16:18:05 2007
@@ -7,16 +7,23 @@
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 1994-2006 Rogue Wave Software.
  * 
  **************************************************************************/
 
@@ -44,6 +51,8 @@
     // extension
     _EXPLICIT logic_error (const char *__s = 0)
         : _RW::__rw_exception (__s) { }
+
+    virtual ~logic_error () _THROWS (());
 };
 
 

Added: incubator/stdcxx/trunk/src/logic_error.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/logic_error.cpp?view=auto&rev=538378
==============================================================================
--- incubator/stdcxx/trunk/src/logic_error.cpp (added)
+++ incubator/stdcxx/trunk/src/logic_error.cpp Tue May 15 16:18:05 2007
@@ -0,0 +1,43 @@
+/***************************************************************************
+ *
+ * logic_error.cpp - definitions of class logic_error members
+ *
+ * $Id$
+ *
+ ***************************************************************************
+ *
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ **************************************************************************/
+
+#define _RWSTD_LIB_SRC
+
+#include <stdexcept>
+#include <rw/_defs.h>
+
+
+_RWSTD_NAMESPACE (std) {
+
+// outlined to avoid generating a vtable in each translation unit
+// that uses the class
+/* virtual */ logic_error::
+~logic_error () _THROWS (())
+{
+    // no-op
+}
+
+}   // namespace std

Propchange: incubator/stdcxx/trunk/src/logic_error.cpp
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message