mirror of
https://github.com/boostorg/core.git
synced 2025-05-11 05:07:39 +00:00
Changed typename to class; some libraries helpfully #define typename
[SVN r15970]
This commit is contained in:
parent
6e498682d1
commit
41354ce3a1
@ -21,13 +21,13 @@ namespace boost
|
|||||||
|
|
||||||
// verify that types are complete for increased safety
|
// verify that types are complete for increased safety
|
||||||
|
|
||||||
template< typename T > inline void checked_delete(T * x)
|
template<class T> inline void checked_delete(T * x)
|
||||||
{
|
{
|
||||||
typedef char type_must_be_complete[sizeof(T)];
|
typedef char type_must_be_complete[sizeof(T)];
|
||||||
delete x;
|
delete x;
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T > inline void checked_array_delete(T * x)
|
template<class T> inline void checked_array_delete(T * x)
|
||||||
{
|
{
|
||||||
typedef char type_must_be_complete[sizeof(T)];
|
typedef char type_must_be_complete[sizeof(T)];
|
||||||
delete [] x;
|
delete [] x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user