mrc-ide / covid-sim

This is the COVID-19 CovidSim microsimulation model developed by the MRC Centre for Global Infectious Disease Analysis hosted at Imperial College, London.
GNU General Public License v3.0
1.23k stars 257 forks source link

Use guards instead of pragma once #443

Closed weshinsley closed 3 years ago

weshinsley commented 3 years ago

With apologies to those who really prefer #pragma once, for consistency and to resolve a fairly uninteresting discussion, we're employing "code-owner's perogative" and saying we'll stay with header guards rather than #pragma once. While the "risks" of #pragma once are miniscule, there are no risks at all with the guards, other than preference, so for the sake of consistency, that's the way we'll go.

I appreciate that's not everyone's favourite thing, but it's a couple of lines per header - not important or prominent things, and there are many other more worthy things to focus in...