CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

reserved identifier violation

Open elfring opened this issue 10 years ago • 3 comments

I would like to point out that identifiers like "_FILEUTIL_" and "__VALLUE_QUANTIZER_H__" do not fit to the expected naming convention of the C++ language standard. Would you like to adjust your selection for unique names?

elfring avatar Jan 26 '16 18:01 elfring

I guess we should go over these and change them ("grep -r -E -o -h '<\w+>' Source | sort -u" for starters and change the one we introduce).

mahilleb-msft avatar Feb 12 '16 09:02 mahilleb-msft

"pragma once" is working for all the compiler (vss, gcc) we are targeting. We have header files which only use "pragma once" and no guard-definitions. We are not copying header files (or having multiple versions of header files) in our projects (if we do, this would be a BUG, they should only reside in one location)

"pragma once" should be used. guard-defines should be removed.

wolfma61 avatar Feb 15 '16 13:02 wolfma61

How much do you care for standard compliance in your software?

elfring avatar Feb 15 '16 14:02 elfring