C++ Logo

sg20

Advanced search

Re: [isocpp-ext] namespace composition

From: Bjarne Stroustrup <bjarne_at_[hidden]>
Date: Fri, 28 Apr 2023 19:37:44 -0400
If I understand, you suggested

     using std::vector;

that works, but now I have 200 or so using declarations to write and
maintain.

If I misunderstand. Try taking the challenge. I think I may have
stumbled over a somewhat important problem - if it has a good solution
I'd be very happy.

On 4/28/2023 6:35 PM, Ville Voutilainen via SG20 wrote:
> On Sat, 29 Apr 2023 at 01:28, Ville Voutilainen
> <ville.voutilainen_at_[hidden]> wrote:
>> On Sat, 29 Apr 2023 at 01:23, Andrew Tomazos <andrewtomazos_at_[hidden]> wrote:
>>> Damn. I was hoping the AI was smarter than the creator of the programming language its written in, and we could have had some kind of watershed moment in history.
>> The bot got it right. The vector doesn't need to be in a golliwogs
>> namespace, the important part is that in the namespace that does
>> a using-directive for std, there's also either a class definition or a
>> user-declaration for the entity you want to be preferred over the
>> std::entity.
> Typo, should be "using-declaration", of course.

Received on 2023-04-28 23:37:47