Title: GitHub · Where software is built
Open Graph Title: cpp-redis/cpp_redis
X Title: cpp-redis/cpp_redis
Description: C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform - cpp-redis/cpp_redis
Open Graph Description: C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform - cpp-redis/cpp_redis
X Description: C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform - cpp-redis/cpp_redis
Opengraph URL: https://github.com/cpp-redis/cpp_redis
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cpp_redis does not compile with MSVC in conformance mode or with C++20 ","articleBody":"When building cpp_redis with Microsoft Visual Studio and switching the permissive mode off (=conformance mode on) or switching the language standard to C++20 (what implicitly enabled the conformacne mode), cpp_redis no longer compiles due to an error in optional.hpp when explanding __CPP_REDIS_LOG(1, \"value_or(U\u0026\u0026 v)\\n\") to cpp_redis::1(...)\r\nError\tC2589\t'constant': illegal token on right side of '::' \r\n\r\nThe reason is that MSVC by default sets the __cplusplus makro to 199711L even for newer language standards.\r\n\r\nThe solution is to either set an additional compiler option in the visual studio project: /Zc:__cplusplus or to update the line\r\n#if __cplusplus \u003e= 201703L in optional.hpp to also check for _MSVC_LANG ","author":{"url":"https://github.com/chriss5","@type":"Person","name":"chriss5"},"datePublished":"2023-10-27T08:37:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/122/cpp_redis/issues/122"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:d5a7c949-c6f2-d716-38ab-c961056b36dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4AC:1A6433:98EC3CE:C77D98E:6975C57D |
| html-safe-nonce | bb335dbb609d8b7c767747d5847fdca3fdfd0355debded276d2d1a178a412e01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEFDOjFBNjQzMzo5OEVDM0NFOkM3N0Q5OEU6Njk3NUM1N0QiLCJ2aXNpdG9yX2lkIjoiMzk4Njk0MDQxNjYyMjk3MDIzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c162718ed6f3a358b8345ba1b69f590cff1e3add73f41e776c593b9c8de6c044 |
| hovercard-subject-tag | repository:158901124 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cpp-redis/cpp_redis/issues/122 |
| twitter:image | https://opengraph.githubassets.com/8d3993b010b31d62ed33ad59b51c0a90f52f8dec520475d2850a5a03eae88e47/cpp-redis/cpp_redis |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d3993b010b31d62ed33ad59b51c0a90f52f8dec520475d2850a5a03eae88e47/cpp-redis/cpp_redis |
| og:image:alt | C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform - cpp-redis/cpp_redis |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-cache |
| go-import | github.com/cpp-redis/cpp_redis git https://github.com/cpp-redis/cpp_redis.git |
| octolytics-dimension-user_id | 45303665 |
| octolytics-dimension-user_login | cpp-redis |
| octolytics-dimension-repository_id | 158901124 |
| octolytics-dimension-repository_nwo | cpp-redis/cpp_redis |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 38889153 |
| octolytics-dimension-repository_parent_nwo | Cylix/cpp_redis |
| octolytics-dimension-repository_network_root_id | 38889153 |
| octolytics-dimension-repository_network_root_nwo | Cylix/cpp_redis |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width