This is My Visual C++ Code Used for Hardware Driver But i am getting follwoing error at Compile time.
template<class _A, class _R>
struct unary_function {
typedef _A argument_type;
typedef _R result_type;
};
This is My Visual C++ Code Used for Hardware Driver But i am getting follwoing error at Compile time.
template<class _A, class _R>
struct unary_function {
typedef _A argument_type;
typedef _R result_type;
};
Don't use identifiers beginning with an underscore and a capital, they are reserved by the implementation. Most probably _A
or _R
is already defined to something that does not make any sense when substituted into your code.
See : What are the rules about using an underscore in a C++ identifier?