Re: [HACKERS] static assertions in C++

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [HACKERS] static assertions in C++
Дата
Msg-id 20171129215537.72ld3tol7xfeavjw@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [HACKERS] static assertions in C++  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] static assertions in C++
Список pgsql-hackers
On 2017-11-29 16:39:14 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2017-11-29 09:41:15 -0500, Robert Haas wrote:
> >> +/* not worth providing a workaround */
> 
> > FWIW, I think that's a perfectly reasonable choice. Adding complications
> > in making static assertions work for random archaic compilers when
> > compiling with c++ just doesn't seem worth more than a few mins of
> > thought.
> 
> I don't think anyone is advocating that we need to develop a solution
> that works, at least not pending somebody actually complaining that
> they want to build PG with an ancient C++ compiler.  I just want
> "we don't support this" to be spelled "#error", rather than dumping off
> a load of reasoning about what might happen without functioning static
> asserts --- on a weird compiler, no less --- onto our future selves.

C++ static asserts are somewhat new (C++11), so I'm unconvinced by that.

Greetings,

Andres Freund


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] static assertions in C++
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] path toward faster partition pruning