{"id":22747659,"url":"https://github.com/stefanhamminga/require","last_synced_at":"2025-07-06T14:33:34.563Z","repository":{"id":142036706,"uuid":"115910789","full_name":"StefanHamminga/require","owner":"StefanHamminga","description":"Very simple C++ library to specify a required language standard version in a header or source.","archived":false,"fork":false,"pushed_at":"2018-01-01T10:24:21.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T05:41:33.666Z","etag":null,"topics":["c-plus-plus","library","standards"],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefanHamminga.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":"2018-01-01T09:43:19.000Z","updated_at":"2018-01-01T10:24:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffaa5526-465d-475d-a0de-961e8db777f3","html_url":"https://github.com/StefanHamminga/require","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StefanHamminga/require","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanHamminga%2Frequire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanHamminga%2Frequire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanHamminga%2Frequire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanHamminga%2Frequire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefanHamminga","download_url":"https://codeload.github.com/StefanHamminga/require/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanHamminga%2Frequire/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263917706,"owners_count":23529627,"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":["c-plus-plus","library","standards"],"created_at":"2024-12-11T03:16:49.709Z","updated_at":"2025-07-06T14:33:34.511Z","avatar_url":"https://github.com/StefanHamminga.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# require\n\nVery simple C++ library to specify a required language standard or feature in a header or source.\n\nSome language features of newer standards have clear errors indicating use of an outdated standard. Because this is not always the case these helper includes will enforce a strong and clear error instead. Especially when combined with `-Wfatal-errors`.\n\n## Installation\n\n```bash\ngit clone https://github.com/StefanHamminga/require.git\ncd require\nmkdir build\n\n# Prepare to install in `/usr/local/include/`\ncmake ..\n# Or to install in the default system location for most Linux distros:\ncmake -DCMAKE_INSTALL_PREFIX=/usr ..\n\nsudo make install\n```\n\n## Usage\n\n```cpp\n// My library or source\n#pragma once\n\n#include \u003crequire/std/c++17\u003e\n// #include \u003crequire/std/gnu++11\u003e\n#include ...\n\n```\n\n## Authors and license\n\nThis library is written by [Stefan Hamminga](stefan@prjct.net) and may be freely shared, distributed and modified according to the terms of the Apache 2.0 license (included as the file `LICENSE`).\n\n## Repository\n\n[https://github.com/StefanHamminga/require](https://github.com/StefanHamminga/require)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanhamminga%2Frequire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanhamminga%2Frequire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanhamminga%2Frequire/lists"}