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