fork download
  1. #include <string>
  2.  
  3. struct A {
  4. const std::string get(const std::string& value) const {
  5. return value;
  6. }
  7. const bool get(bool value) const {
  8. return value;
  9. }
  10. };
  11.  
  12. int main(int argc, char **argv){
  13. A a;
  14. const std::string str = a.get(std::string("abc"));
  15. const bool b = a.get(true);
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 2852KB
stdin
Standard input is empty
stdout
Standard output is empty