0

I use the IDE Visual Studio 2013.

Visual Studio has a non-standard but widely supported preprocessor directive:

#pragma once

This replaces #include guards and removes any possibility of name confliction with less code. My question is that is there any disadvantage to using this, for example decreased portability?

Kieren Pearson
  • 416
  • 3
  • 15
  • `Visual Studio has a non-standard ... decreased portability?` What was the question again? Of course non-standard features are less portable than standard ones, even if the difference probably is negligible in this case. – deviantfan Jun 20 '15 at 14:26
  • Yea that's starting to become apparent to me – Kieren Pearson Jun 20 '15 at 14:28

1 Answers1

0

It is less portable. It works. But then again you are working in the windows environment for why not!

Ed Heal
  • 59,252
  • 17
  • 87
  • 127