Re: unconstify equivalent for volatile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unconstify equivalent for volatile
Дата
Msg-id 18194.1550504630@sss.pgh.pa.us
обсуждение исходный текст
Ответ на unconstify equivalent for volatile  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: unconstify equivalent for volatile  (Andres Freund <andres@anarazel.de>)
Re: unconstify equivalent for volatile  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> I propose to add an equivalent to unconstify() for volatile.  When
> working on this, I picked the name unvolatize() mostly as a joke, but it
> appears it's a real word.  Other ideas?

Umm ... wouldn't this amount to papering over actual bugs?  I can
think of legitimate reasons to cast away const, but casting away
volatile seems pretty dangerous, and not something to encourage
by making it notationally easy.

            regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: unconstify equivalent for volatile
Следующее
От: Michael Banck
Дата:
Сообщение: Re: Progress reporting for pg_verify_checksums