{"id":15047322,"url":"https://github.com/florianbecker/pseudo_cpp11","last_synced_at":"2026-02-26T19:08:07.836Z","repository":{"id":250286352,"uuid":"339998486","full_name":"florianbecker/pseudo_cpp11","owner":"florianbecker","description":"C++11 compatibility layer for old projects","archived":false,"fork":false,"pushed_at":"2021-05-02T21:55:34.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T12:57:05.734Z","etag":null,"topics":["compatibility","cpp","cpp03","cpp11","cpp14","cpp17","cpp98","fake","noreturn","visual-studio"],"latest_commit_sha":null,"homepage":"https://vxapps.com","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florianbecker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-18T09:28:21.000Z","updated_at":"2021-05-02T21:55:36.000Z","dependencies_parsed_at":"2024-07-26T10:20:07.649Z","dependency_job_id":null,"html_url":"https://github.com/florianbecker/pseudo_cpp11","commit_stats":null,"previous_names":["florianbecker/pseudo_cpp11"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianbecker%2Fpseudo_cpp11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianbecker%2Fpseudo_cpp11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianbecker%2Fpseudo_cpp11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianbecker%2Fpseudo_cpp11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florianbecker","download_url":"https://codeload.github.com/florianbecker/pseudo_cpp11/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495495,"owners_count":20299923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compatibility","cpp","cpp03","cpp11","cpp14","cpp17","cpp98","fake","noreturn","visual-studio"],"created_at":"2024-09-24T20:56:35.508Z","updated_at":"2025-10-30T06:32:51.147Z","avatar_url":"https://github.com/florianbecker.png","language":"CMake","readme":"# pseudo_cpp11\nC++11 compatibility layer for old projects.\n\nThis will help you to port a C++98 project easily to C++11 and above.\n\n## Usage\n```cpp\n#include \u003cpseudo_cpp11.hpp\u003e\n```\n\n## Keywords for C++98\nSome are fake, some are functional, but all are direct compileable with --std=c++11\n- explicit // (only fake)\n- noexcept // (only functional on clang and gcc)\n- override // (only fake)\n- final // (only fake)\n- nullptr\n- constexpr\n\n## Macros\n### Keywords\n- DEFAULT as = default; // (only fake)\n- DELETE as = delete; // (only fake)\n\n### Attributes\n- DEPRECATED as [[deprecated]]\n- NORETURN as [[noreturn]] // (only functional on Visual Studio)\n- NODISCARD as [[nodiscard]] // (only functional on clang and gcc)\n- MAYBE_UNUSED as [[maybe_unused]] // (only functional on clang and gcc)\n- UNUSED as (void) - not explicit C++11, but to compress compiler warnings until the project convertion is done.\n\n## Loop\nforeach macro\nVisual Studio example:\n```cpp\nforeach ( const int \u0026_value, container ) {\n\n  std::cout \u003c\u003c \"Value: \" \u003c\u003c _value \u003c\u003c std::endl;\n}\n```\n\nOther example:\n```cpp\nforeach ( _value, container ) {\n\n  std::cout \u003c\u003c \"Value: \" \u003c\u003c ( *_value ) \u003c\u003c std::endl;\n}\n```\n\n## Not working\nThis helper is mostly for porting to C++11 and above, so this features will not work within this project:\n- auto keyword\n- using keyword\n- initializer_list\n- lambda functions\n- variadic templates\n- other specific C++11 features, not explicit listed here\n\n## User-defined build variables\nInside cmake/env.cmake you will find some user-defined build variables for particular purposes.\n\n### Debugging\nYou can log the verbose build output.\n```cmake\n# Debugging of build steps\nset(CMAKE_VERBOSE_MAKEFILE ON)\n```\n\n### C++ Standard\nYou can build the example with C++11 and above standard.\n```cmake\n# c++ standard - possible: 98, 11, 14, 17\nset(CMAKE_CXX_STANDARD 11)\n```\n\n## Support\n- from Microsoft Visual Studio 2008\n- Clang \u003e= 8 (Earlier not tested)\n- GCC \u003e= 7 (Earlier not tested)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianbecker%2Fpseudo_cpp11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorianbecker%2Fpseudo_cpp11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianbecker%2Fpseudo_cpp11/lists"}