C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Callsite passed as template parameter

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Wed, 15 Nov 2023 18:30:31 -0500
On Wed, Nov 15, 2023 at 4:50 PM Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> Jason:
> >
> > Lénárd:
> >
> > > Isn't this a major ODR-violation footgun?
> >
> > Footgun? Yes. ODR violation? No.
>
>
> It could be a cool way of turning a string_view into a C-style string:

I see nothing about this that would be "cool". You're increasing the
static size requirements of your entire binary every time you do it.
Memory that will likely go unused for 99% of your application's
runtime.

Received on 2023-11-15 23:30:45