Agree! I will put my definitions into a namespace as you suggested.
Jonathan Wakely <jwakely....@gmail.com> 于2020年1月15日周三 下午11:42写道: > > On Wed, 15 Jan 2020 at 15:37, Jiang Ma <majiang31...@gmail.com> wrote: > > > > Thanks for the kindly reply! > > > It would create a non-standard, non-portable dialect of C++. We prefer > > > to avoid adding non-standard extensions these days. You could propose > > >it to the C++ committee, but I'm pretty sure they would not want such > > >a thing. > > Indeed, pragma is not portable. I believe you are right that the > > C++ committee would not want such a thing :-) > > I mean they wouldn't want it under any syntax, not just as a pragma. > > It's a terrible fit for a pragma anyway.