Commit 40753806 by Paolo Carlini Committed by Paolo Carlini

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
parent a80a2701
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> 2008-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add, * include/bits/move.h (swap(_Tp (&)[_Nm], _Tp (&)[_Nm])): Add,
......
// -*- C++ -*- // -*- 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 // 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 // software; you can redistribute it and/or modify it under the terms
...@@ -72,35 +72,35 @@ namespace __gnu_pbds ...@@ -72,35 +72,35 @@ namespace __gnu_pbds
struct resize_error : public container_error { }; struct resize_error : public container_error { };
#if __EXCEPTIONS #if __EXCEPTIONS
void inline void
__throw_container_error(void) __throw_container_error(void)
{ throw container_error(); } { throw container_error(); }
void inline void
__throw_insert_error(void) __throw_insert_error(void)
{ throw insert_error(); } { throw insert_error(); }
void inline void
__throw_join_error(void) __throw_join_error(void)
{ throw join_error(); } { throw join_error(); }
void inline void
__throw_resize_error(void) __throw_resize_error(void)
{ throw resize_error(); } { throw resize_error(); }
#else #else
void inline void
__throw_container_error(void) __throw_container_error(void)
{ std::abort(); } { std::abort(); }
void inline void
__throw_insert_error(void) __throw_insert_error(void)
{ std::abort(); } { std::abort(); }
void inline void
__throw_join_error(void) __throw_join_error(void)
{ std::abort(); } { std::abort(); }
void inline void
__throw_resize_error(void) __throw_resize_error(void)
{ std::abort(); } { std::abort(); }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment