On Thu, 8 Jan 2026 at 14:55, Frederick Virchanza Gotham
<[email protected]> wrote:
>
> On Thu, Jan 8, 2026 at 10:50 AM Jonathan Wakely wrote:
> >
> > On Thu, 8 Jan 2026 at 10:15, Frederick Virchanza Gotham wrote:
> > >
> > > In the file "std/format", we have:
> > >
> > >   /// @cond undocumented
> > >   template<typename _Tp, template<typename...> class _Class>
> > >     constexpr bool __is_specialization_of = false;
> > >   template<template<typename...> class _Class, typename... _Args>
> > >     constexpr bool __is_specialization_of<_Class<_Args...>, _Class> = 
> > > true;
> > >
> > > I need to use this template in my own header file
> > > "bits/chimeric_ptr.h", and so in order to avoid code duplication, I
> > > think we should move it to a different header file.
> > >
> > > The functionality of this template is so basic that I think we should
> > > move it to "bits/c++config".
> >
> > Certainly not. It belongs in <type_traits> or bits/utility.h, but not
> > bits/c++config.h
>
>
> I've moved it to bits/utility.h. What do you think of the following patch:
>
>     
> https://github.com/healytpk/gcc-thomas-healy/commit/tag_header_is_specialization_of
>
> You'll see I also have "__is_specialization_of_as_struct" in order to
> accommodate pre-C++14.

That isn't necessary because nothing in libstdc++ needs it before
C++14, and so it just slows down compilation for no reason.

Reply via email to