gcc-13 rebind compile failures fix

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792#c7
Formatting fix
This commit is contained in:
Navin P 2023-03-06 12:34:59 +05:30
parent 0ae7624c14
commit af2a93f414
2 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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: