fork(2) download
  1.  
  2. namespace My{
  3.  
  4. template<class config>
  5. class BasicValue{
  6. public:
  7. enum Type{
  8. NULL_TYPE = 0,
  9. OBJECT_TYPE,
  10. ARRAY_TYPE,
  11. STRING_TYPE,
  12. BOOL_TYPE,
  13. INT_TYPE,
  14. REAL_TYPE,
  15. }; // Type
  16. };// BasicValue
  17.  
  18. }// My
  19.  
  20. int main() {
  21. // your code goes here
  22. My::BasicValue<int>::Type t;
  23. t = My::BasicValue<int>::STRING_TYPE;
  24. return 0;
  25. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty