Skip to content

fix: Use of CachedEnforcer throws error from clang - #1

Open
PolBreachIty wants to merge 1 commit into
masterfrom
chore/compile-macos
Open

fix: Use of CachedEnforcer throws error from clang#1
PolBreachIty wants to merge 1 commit into
masterfrom
chore/compile-macos

Conversation

@PolBreachIty

Copy link
Copy Markdown

add string to casbin_types for visibility of std::hash when using enforcer_cached

 - add <string> to casbin_types.h for visibility of std::hash<string> of CachedEnforcer's unordered_map
 - add default virtual destructor

clang
	/include/c++/4.2.1
	Apple clang version 12.0.5 (clang-1205.0.22.11)
	Target: x86_64-apple-darwin20.2.0

Signed-off-by: William Michaels <bill@polarity.io>
@PolBreachIty PolBreachIty changed the title std::hash<string> visibility for macos usage of unordered_map fix: Use of CachedEnforcer throws error from clang Sep 22, 2021
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

Successfully merging this pull request may close these issues.

1 participant