You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/ajson/ajson.hpp:158:47: error: type/value mismatch at argument 1 in template parameter list for ‘template<template<class ...> class U, class T> struct ajson::detail::is_template_instant_of’
158 | is_template_instant_of<tsl::robin_map, T>::value ||
| ^
src/ajson/ajson.hpp:158:47: note: expected a template of type ‘template<class ...> class U’, got ‘template<class Key, class T, class Hash, class KeyEqual, class Allocator, bool StoreHash, class GrowthPolicy> class tsl::robin_map’
似乎是is_template_instant_of不支持模板里有非类型模板参数, 怎么办?
The text was updated successfully, but these errors were encountered:
为了支持tsl::robin_map, 在ajson.hpp的158行,添加
is_template_instant_of<tsl::robin_map, T>::value ||
编译报错:
似乎是is_template_instant_of不支持模板里有非类型模板参数, 怎么办?
The text was updated successfully, but these errors were encountered: