C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Specify the mangled name

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Thu, 6 Feb 2025 22:05:38 +0000
On Thu, Feb 6, 2025 at 11:04 AM Frederick Virchanza Gotham
<cauldwell.thomas_at_[hidden]> wrote:
>
> [ beginning of translation unit ]
> std::vector<int> my_global_vec;
> [ end of translation unit ]


Sorry, this of course should have been:

     [ beginning of translation unit ]
     std::vector<int> *p_my_global_vec;
     [ end of translation unit ]

Since there's only a forward-declaration available, I can define a
pointer but I can't define a vector.

Received on 2025-02-06 22:05:50