fork(2) download
  1. #include <type_traits>
  2.  
  3. int someFun() { return 42; }
  4. int someOtherFun() {return 4;}
  5.  
  6. int main() {
  7. const auto val = someFun();
  8. std::remove_cv_t<decltype(val)> nonConstVal = someOtherFun();
  9. ++nonConstVal;
  10. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty