sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.64k stars 351 forks source link

shards_pool.h:90:36: error: expected ‘)’ before ‘min’ #434

Closed tingtan1015 closed 1 year ago

tingtan1015 commented 1 year ago

I want to use redis-plus-plus in an existing project. I only did is to put #include <sw/redis++/redis++.h> in a hpp file. When I compile it: 截屏2022-12-19 15 49 21 I wonder why this happen?

sewenew commented 1 year ago

A possible reason is that your other code defined a Marco, named min.

Regards

sewenew commented 1 year ago

Since there's no update, I'll close this issue.

Regards