Boost logo

Boost :

Subject: Re: [boost] Guidence on #pragma once
From: Olaf van der Spek (ml_at_[hidden])
Date: 2018-11-25 12:46:30


On Sat, Nov 24, 2018 at 2:01 AM Andrey Semashev via Boost
<boost_at_[hidden]> wrote:
> since `#pragma once` is non-standard and not reliable, there's little

Who has a sane reproducible test case showing the claimed unreliability?

> reason to keep using it, especially if you're targeting newer
> compilers supporting C++14. So if you want to simplify the code, keep
> the include guards and drop the pragma.

#pragma once is simpler then include guards.

-- 
Olaf

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk