units icon indicating copy to clipboard operation
units copied to clipboard

/permissive- definition

Open nairaner opened this issue 5 years ago • 1 comments

Defining /permissive- causes issues when compiling using Clion+CUDA.

First of all /permissive- is compiler flag and not definition. PR #224 fixes it, but causes another issue. It forces standard conformance on library users, which can't always make it happen. I believe it should be hidden behind CMake option or just be removed from CMake and information about compilation time improvement available in README

https://github.com/nholthaus/units/blob/9f09abb32641fdf8dbb2c49ee81717d434624218/CMakeLists.txt#L69

nairaner avatar Jun 05 '20 11:06 nairaner

I just ran into this myself, I think it's a problem with CLion in general. I think you're right about imposing it on users (as the former only user of the library I took some liberties), so I'll leave it in some compile-time-improvement section of the readme.

nholthaus avatar Oct 04 '20 00:10 nholthaus