Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In function 'int main()':
prog.cc:24:37: error: no matching function for call to 'ResourceManager<int>::GetResource(std::tuple<>)'
     rm.GetResource(std::make_tuple()); // FAIL
                                     ^
prog.cc:13:32: note: candidate: 'template<class Func, class ... ArgTypes> std::shared_ptr<_Tp> ResourceManager<ResourceType>::GetResource(std::tuple<_Args2 ...>&&, Func&&) [with Func = Func; ArgTypes = {ArgTypes ...}; ResourceType = int]'
  std::shared_ptr<ResourceType> GetResource(std::tuple<ArgTypes...>&& args, Func&& func = CreateWithNew<ArgTypes...>) {
                                ^~~~~~~~~~~
prog.cc:13:32: note:   template argument deduction/substitution failed:
prog.cc:24:37: note:   couldn't deduce template parameter 'Func'
     rm.GetResource(std::make_tuple()); // FAIL
                                     ^
Exit Code:
1