C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Specify the mangled name

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Mon, 3 Feb 2025 11:49:59 +0000
On Mon, Feb 3, 2025 at 11:14 AM Andrey Semashev wrote:
>
>
> It is not. A forward declaration would suffice.


But I'll be need forward declarations for other stuff like "std::less"
and "std::allocator":

    namespace std {
        template<class T> class less;
        template<class T> class allocator;
        template< class Key, class Compare = less<Key>, class
Allocator = allocator<Key> > class set;
    }

    typedef std::set<unsigned> IndexSet;

Received on 2025-02-03 11:50:07