Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何添加支持其他容器? #14

Open
JaydenFish opened this issue Jan 18, 2022 · 1 comment
Open

如何添加支持其他容器? #14

JaydenFish opened this issue Jan 18, 2022 · 1 comment

Comments

@JaydenFish
Copy link

为了支持tsl::robin_map, 在ajson.hpp的158行,添加is_template_instant_of<tsl::robin_map, T>::value ||
编译报错:

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不支持模板里有非类型模板参数, 怎么办?

@YanjidandangHuangxiaoming

老哥我也同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants