sewenew / redis-plus-plus

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

[QUESTION] Where is initializer_list file? #331

Closed NamSeungwoo closed 2 years ago

NamSeungwoo commented 2 years ago

Before Asking A Question The README.md file has a detailed introduction with examples on how to use redis-plus-plus, and redis.h has doxgen style comments for most commands. Before asking a question, please try to find answers with these two files.

For general questions on redis-plus-plus, you can ask questions at StackOverflow with redis tag, and normally, you'll get faster response on StackOverflow.

However, if you still don't get answers, feel free to ask a question here.

Describe the problem Hi, I tried to some cmake process. 1) hiredis build procedure from CMake gui. 2) redis-plus-plus build procedure from CMake gui.

3) I added some path parameter(e.g. include, library) to visual studio project properties

But, a problem occurred when I built project. in .../includes/sw/redis++/redis.h(23): fatal error C1083: 'initializer_list': No such file or directory.

How can I fix it?

Environment:

Additional context Add any other context about the problem here.

Mephalich commented 2 years ago

Hello. As far as I know VS12 doesn't support initializer_list...

->https://stackoverflow.com/questions/12928931/initializer-list-in-visual-studio-2012 && ->https://social.msdn.microsoft.com/Forums/vstudio/en-US/8da5dd69-67d3-4c80-b3a3-71e455bc746d/include-ltinitializerlistgt-broken?forum=vcgeneral

You might wanna upgrade your compiler... Use the links above for more details. Best regards

sewenew commented 2 years ago

@NamSeungwoo VS2012 is an old compiler, please upgrade it.

Regards