Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C3895

'var' : type data members cannot be 'volatile'

Certain kinds of data members, for example literal or initonly, cannot be volatile (C++).

The following sample generates C3895:

// C3895.cpp
// compile with: /clr
ref struct Y1 {
   volatile int data_var2;   // C3895
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.