fork download
  1. //Прототип оригинальной функции
  2. std::vector<T> just_merge(std::vector<T> &first, std::vector<T> &second, bool ascending_order)
  3. //То, как я пытаюсь превратить ее в лямбду (не верно)
  4. std::function<void()> just_merge = [&](std::vector<T> &first, std::vector<T> &second, bool ascending_order) -> std::vector<T>
  5. //Попытка номер два: error: C2064: term does not evaluate to a function taking 3 arguments
  6. std::function<void (std::vector<T>)> merging = [&](std::vector<T> &lfirst, std::vector<T> &lsecond, bool lascending_order)
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector<T> just_merge(std::vector<T> &first, std::vector<T> &second, bool ascending_order)
      ^
stdout
Standard output is empty