aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2008-06-24 12:04:13 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-06-24 12:04:13 +0000
commit40753806b0ac4d576158e85b2d26b72fc393ca1d (patch)
tree972e4484640b635a37d94a2610ab772890531972
parenta80a27015e7a09109ace946db74b780532267f66 (diff)
downloadgcc-40753806b0ac4d576158e85b2d26b72fc393ca1d.zip
gcc-40753806b0ac4d576158e85b2d26b72fc393ca1d.tar.gz
gcc-40753806b0ac4d576158e85b2d26b72fc393ca1d.tar.bz2
exception.hpp (__throw_container_error, [...]): Mark inline.
2008-06-24 Paolo Carlini <paolo.carlini@oracle.com> Chalathip Thumkanon <chalathip@gmail.com> * include/ext/pb_ds/exception.hpp (__throw_container_error, __throw_insert_error, __throw_join_error, __throw_resize_error): Mark inline. Co-Authored-By: Chalathip Thumkanon <chalathip@gmail.com> From-SVN: r137065
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/include/ext/pb_ds/exception.hpp18
2 files changed, 16 insertions, 9 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 26b94e5..8b21a96 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-24 Paolo Carlini <paolo.carlini@oracle.com>
+ Chalathip Thumkanon <chalathip@gmail.com>
+
+ * include/ext/pb_ds/exception.hpp (__throw_container_error,
+ __throw_insert_error, __throw_join_error, __throw_resize_error):
+ Mark inline.
+
2008-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add,
diff --git a/libstdc++-v3/include/ext/pb_ds/exception.hpp b/libstdc++-v3/include/ext/pb_ds/exception.hpp
index 4a35931..6da1d41 100644
--- a/libstdc++-v3/include/ext/pb_ds/exception.hpp
+++ b/libstdc++-v3/include/ext/pb_ds/exception.hpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -72,35 +72,35 @@ namespace __gnu_pbds
struct resize_error : public container_error { };
#if __EXCEPTIONS
- void
+ inline void
__throw_container_error(void)
{ throw container_error(); }
- void
+ inline void
__throw_insert_error(void)
{ throw insert_error(); }
- void
+ inline void
__throw_join_error(void)
{ throw join_error(); }
- void
+ inline void
__throw_resize_error(void)
{ throw resize_error(); }
#else
- void
+ inline void
__throw_container_error(void)
{ std::abort(); }
- void
+ inline void
__throw_insert_error(void)
{ std::abort(); }
- void
+ inline void
__throw_join_error(void)
{ std::abort(); }
- void
+ inline void
__throw_resize_error(void)
{ std::abort(); }
#endif