cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : General C++ Programming : Defining new datatype
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  Defining new datatype

Repentinus (9)
1
2
3
template <int N> struct A {
       unsigned a: N;
};


How I can use union with this template so that A can be signed and unsigned at the same time? It would be really great advantage for my interpreter.


Thanks,
Repentinus
| Last edited on

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us