{"id":13729752,"url":"https://github.com/PollardBanknote/cppbackport","last_synced_at":"2025-05-08T02:30:41.968Z","repository":{"id":89784184,"uuid":"63620793","full_name":"PollardBanknote/cppbackport","owner":"PollardBanknote","description":"A backport of C++11/14/17 features to earlier versions","archived":false,"fork":false,"pushed_at":"2018-04-26T01:35:24.000Z","size":242,"stargazers_count":38,"open_issues_count":6,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-14T20:38:24.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","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/PollardBanknote.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}},"created_at":"2016-07-18T16:51:34.000Z","updated_at":"2023-11-02T11:54:36.000Z","dependencies_parsed_at":"2024-01-07T16:31:57.953Z","dependency_job_id":"3a91b1a2-68e8-4568-8a8b-e0e89474f5d9","html_url":"https://github.com/PollardBanknote/cppbackport","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollardBanknote%2Fcppbackport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollardBanknote%2Fcppbackport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollardBanknote%2Fcppbackport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PollardBanknote%2Fcppbackport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PollardBanknote","download_url":"https://codeload.github.com/PollardBanknote/cppbackport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252986577,"owners_count":21836186,"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":[],"created_at":"2024-08-03T02:01:04.683Z","updated_at":"2025-05-08T02:30:41.751Z","avatar_url":"https://github.com/PollardBanknote.png","language":"C++","readme":"This is a backport of the current C++ standard library to C++03/11/14. Obviously not everything\ncan be backported, but quite a bit can.\n\nQuick Start\n===========\n\nThere are a couple of small examples to give you an idea of usage. If you have make and g++\nyou can build things quickly enough:\n - clone the repo to /some/place/cppbackport\n - make a temp dir /wherever/you/wanna/build\n - cd /wherever/you/wanna/build\n - make -f /some/place/cppbackport/examples/Makefile\n\nThe examples are all setup to compile the cppbackport files as a static library (libcppbackport.a),\nand then link it with one of the main example files (ex., gibberish.cpp).\n\nInstallation\n============\n\nI recommend copying the lib directory into your project, and calling the included Makefile\nto create libcppbackport.a. Link that into your project, and add the appropriate include\nflags (ex., -iquotecppbackport).\n\nUsage\n=====\n\nBasically, #include \"filesystem.h\" or similar. Then use cpp namespace in place of std namespace.\nThe headers are all named after their official counterparts, with the addition of the .h\nextension.\n\nFAQ\n===\n**Who is this library suitable for?**  \nAnyone, really. There are a few use cases:\n- The primary use case is to provide some newer features to people who are stuck with/choose to use an older compiler\n- Another use would be to soften the requirements of your own project (i.e., so your users can use an older compiler)\n- In some cases, this project may provide usable code before compilers support a standard. For example, C++17 at the moment isn't even standardized, *but* we basically know what's in it so we can start supporting it.\n\n**What's the license?**  \nBSD 3-clause. Use it. Contribute if you like. Don't blame us for things.\n\n**What compiler(s)/platforms are supported**  \nThe development environment is Fedora 24 with GCC 6.1.1. I've used it with earlier versions\nof GCC (4.7.4, I think), and a semi-recent version of Clang. I've not tested under Windows, yet.\n\n**Will this use C++11/14/17 if available?**  \nYes. Based on the value of the __cplusplus define, the files will simply #include the\nsystem header (as appropriate).\n\n**Why not header-only?**  \nI actually like the interface/implementation distinction. Header-only implementations (IMO)\nget way too large and the files are difficult to navigate. Also, save the compiler some work.\nAlso, installing a lib isn't really that hard.\n\n**Does it work on Windows?**  \nSorry, POSIX mostly. Would love for some Windows devs to help.\n\n**Why not use Boost?**  \nThere's some overlap, but there are differences, too. And none of these things, *individually*\nare that big. \n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPollardBanknote%2Fcppbackport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPollardBanknote%2Fcppbackport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPollardBanknote%2Fcppbackport/lists"}