Skip to content

Instantly share code, notes, and snippets.

@Siapran
Created January 17, 2020 16:01
Show Gist options
  • Save Siapran/635fd1b5641b6bc36718c72657c851c4 to your computer and use it in GitHub Desktop.
Save Siapran/635fd1b5641b6bc36718c72657c851c4 to your computer and use it in GitHub Desktop.
[include_dir]\include\tao\json\internal/pair.hpp(23): error C2903: 'default_key': symbol is neither a class template nor a function template
[cpp_file].cpp(1143): note: see reference to function template instantiation 'tao::json::internal::pair<Traits>::pair<T&>(U)' being compiled
with
[
Traits=tao::json::traits,
T=std::map<std::string,tao::json::basic_value<tao::json::traits>,std::less<void>,std::allocator<std::pair<const std::string,tao::json::basic_value<tao::json::traits>>>>,
U=std::map<std::string,tao::json::basic_value<tao::json::traits>,std::less<void>,std::allocator<std::pair<const std::string,tao::json::basic_value<tao::json::traits>>>> &
]
[cpp_file].cpp(1143): note: see reference to function template instantiation 'tao::json::internal::pair<Traits>::pair<T&>(U)' being compiled
with
[
Traits=tao::json::traits,
T=std::map<std::string,tao::json::basic_value<tao::json::traits>,std::less<void>,std::allocator<std::pair<const std::string,tao::json::basic_value<tao::json::traits>>>>,
U=std::map<std::string,tao::json::basic_value<tao::json::traits>,std::less<void>,std::allocator<std::pair<const std::string,tao::json::basic_value<tao::json::traits>>>> &
]
[include_dir]\include\tao\json\events\../binary_view.hpp(18): note: see reference to class template instantiation 'tao::span<const std::byte,18446744073709551615>' being compiled
[include_dir]\include\tao\json\internal/pair.hpp(23): error C2039: 'as_string': is not a member of 'tao::json::traits<T,void>'
with
[
T=std::map<std::string,tao::json::basic_value<tao::json::traits>,std::less<void>,std::allocator<std::pair<const std::string,tao::json::basic_value<tao::json::traits>>>>
]
[include_dir]\include\tao\json\internal/type_traits.hpp(106): note: see declaration of 'tao::json::traits<T,void>'
with
[
T=std::map<std::string,tao::json::basic_value<tao::json::traits>,std::less<void>,std::allocator<std::pair<const std::string,tao::json::basic_value<tao::json::traits>>>>
]
[include_dir]\include\tao\json\internal/pair.hpp(23): error C2062: type 'unknown-type' unexpected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment