gcc-13 rebind compile failures fix
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792#c7 Formatting fix
This commit is contained in:
parent
0ae7624c14
commit
af2a93f414
@ -21,8 +21,9 @@ struct bad_allocator : std::allocator<T>
|
|||||||
using std::allocator<T>::allocator;
|
using std::allocator<T>::allocator;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
struct rebind {
|
struct rebind
|
||||||
using other = bad_allocator<U>;
|
{
|
||||||
|
using other = bad_allocator<U>;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class... Args>
|
template<class... Args>
|
||||||
|
|||||||
@ -188,8 +188,9 @@ template<class T>
|
|||||||
class my_allocator : public std::allocator<T>
|
class my_allocator : public std::allocator<T>
|
||||||
{
|
{
|
||||||
template<typename U>
|
template<typename U>
|
||||||
struct rebind {
|
struct rebind
|
||||||
using other = my_allocator<U>;
|
{
|
||||||
|
using other = my_allocator<U>;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user