Detect compiler with #ifdef

前端 未结 3 1186
南笙
南笙 2020-12-10 15:27

I\'m trying to build a small code that works across multiple platforms and compilers. I use assertions, most of which can be turned off, but when compiling with PGI\'s

3条回答
  •  -上瘾入骨i
    2020-12-10 16:03

    Have you looked at the boost headers? Supposing they support PGI, they will have found a way to detect it. You could use that. I would start to search somewhere in boost/config.

提交回复
热议问题