fork download
  1. #include <string>
  2.  
  3. struct XmlType {};
  4.  
  5. XmlType XmlType_(const XmlType&, const std::string&) { return XmlType{}; }
  6. std::string XmlType_(const XmlType&) { return ""; }
  7.  
  8. template<typename T>
  9. using TFunc1 = T (*)(const T&, const std::string&);
  10. template<typename T>
  11. using TFunc2 = std::string (*)(const T&);
  12.  
  13. template<typename T, TFunc1<T> func1 = XmlType_, TFunc2<T> func2 = XmlType_>
  14. struct XmlUtil {};
  15.  
  16. int main()
  17. {
  18. XmlUtil<XmlType> util;
  19. }
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty