Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // file: library.h
  2. #ifndef LIBRARY_H
  3. #define LIBRARY_H
  4.  
  5. namespace Foo
  6. {
  7. enum SensorStatus
  8. {
  9. PreInit,
  10. Initialized
  11. };
  12. };
  13.  
  14. #endif
  15.  
  16. // file: sensor.h
  17. #ifndef SENSOR_H
  18. #define SENSOR_H
  19.  
  20. #include "library.h"
  21.  
  22. namespace Foo
  23. {
  24. class Sensor
  25. {
  26. public:
  27. Sensor();
  28. SensorStatus Status = SensorStatus.PreInit; // ERROR
  29. };
  30. };
  31.  
  32. error: 'SensorStatus' does not name a type
  33. SensorStatus Status = SensorStatus.PreInit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement