fork download
  1. #include <iostream>
  2.  
  3. class A {
  4. public:
  5. A () {}
  6.  
  7. template<typename...tTypes> A (tTypes...pArgs) {
  8. std::cout << __PRETTY_FUNCTION__ << std::endl;
  9. }
  10. };
  11.  
  12. class B {
  13. public:
  14. operator A () const {
  15. std::cout << __PRETTY_FUNCTION__ << std::endl;
  16. return A();
  17. }
  18. };
  19.  
  20. int main() {
  21. B b;
  22. A a = b;
  23. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
B::operator A() const