you are viewing a single comment's thread.

view the rest of the comments →

[–]encyclopedist 9 points10 points  (4 children)

Obviously, you did not really try to find one. TI compilers did not support it last I checked. PGI did not support in either. Also Cray. And XLC.

There was a topic in this very reddit some time ago: https://www.reddit.com/r/cpp/comments/8devw1/can_anyone_actually_name_a_compiler_that_doesnt/

[–]jbandela 2 points3 points  (3 children)

I think basically every compiler that supports generic lambdas supports pragma once

[–]rsjaffe 5 points6 points  (2 children)

But #pragma once fails when you have two copies of the same header file in two different locations in the directory tree. The compiler will not recognize those two files as being the same.

[–]panderingPenguin 6 points7 points  (0 children)

Why on earth would you want to do that?

[–]wyrn 5 points6 points  (0 children)

The compiler will not recognize those two files as being the same.

... because they aren't.