Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 4) C4634

Error Message

XML document comment: cannot be applied: reason

XML documentation tags can not be applied to all C++ constructs. For example, you cannot add a documentation comment to a namespace or template.

For more information, see XML Documentation (Visual C++).

Example

The following sample generates C4634.

// C4634.cpp
// compile with: /W4 /doc /c
/// This is a namespace.   // C4634
namespace hello {
   class MyClass  {};
};

The following sample generates C4634.

// C4634_b.cpp
// compile with: /W4 /doc /c
/// This is a template.   // C4634
template <class T>
class MyClass  {};

Community Additions

ADD
Show:
© 2015 Microsoft