1

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;
};
Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
  • it actualy compiles fine on my Visual Studio 2013 – David Haim Jul 16 '15 at 10:14
  • Show the code, which is causing error. See the long error in output. This code you have shown is not the actual reason, how you've used is the actual source of error. – Ajay Jul 16 '15 at 10:15
  • I am Visual Studio 6.0 – Satyavan Choure Jul 16 '15 at 10:16
  • 1
    Post an [MCVE](http://stackoverflow.com/help/mcve), please. Something we could copy&paste into a file, compile it, and see the error ourselves. – Angew is no longer proud of SO Jul 16 '15 at 10:25
  • 1
    @SatyavanChoure: _Why_ are you using Visual Studio 6.0? That IDE and compiler _predate standard C++ itself_. They are almost TWENTY years old. They have many infamous oddities to the extent that I would be content writing off this entire question as moot and instructing you to use a compiler from _this_ millennium and century. – Lightness Races in Orbit Jul 16 '15 at 10:59

1 Answers1

4

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?

Community
  • 1
  • 1
Quentin
  • 62,093
  • 7
  • 131
  • 191