fork download
  1. #include <iostream>
  2.  
  3. class {
  4. public:
  5. std::string test = "unique?";
  6.  
  7.  
  8. } InterfaceRegistration;
  9.  
  10. int main() {
  11. std::cout << InterfaceRegistration.test << std::endl;
  12. auto not_really = InterfaceRegistration;
  13. not_really.test = "not really unique type";
  14. std::cout << InterfaceRegistration.test << std::endl;
  15. std::cout << not_really.test << std::endl;
  16. }
  17.  
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
unique?
unique?
not really unique type