{"id":15429550,"url":"https://github.com/ldionne/libawful","last_synced_at":"2025-08-17T07:04:28.491Z","repository":{"id":57845984,"uuid":"68553696","full_name":"ldionne/libawful","owner":"ldionne","description":"A collection of awful archetypes to ease the testing of generic C++ libraries","archived":false,"fork":false,"pushed_at":"2019-04-04T15:28:26.000Z","size":16,"stargazers_count":108,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T16:41:36.182Z","etag":null,"topics":["archetype","cpp","cpp11","cpp14","generic-programming","testing"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ldionne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-18T23:49:08.000Z","updated_at":"2025-01-04T04:15:16.000Z","dependencies_parsed_at":"2022-09-03T07:51:41.000Z","dependency_job_id":null,"html_url":"https://github.com/ldionne/libawful","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ldionne/libawful","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldionne%2Flibawful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldionne%2Flibawful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldionne%2Flibawful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldionne%2Flibawful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldionne","download_url":"https://codeload.github.com/ldionne/libawful/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldionne%2Flibawful/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816551,"owners_count":24650831,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["archetype","cpp","cpp11","cpp14","generic-programming","testing"],"created_at":"2024-10-01T18:11:27.225Z","updated_at":"2025-08-17T07:04:28.464Z","avatar_url":"https://github.com/ldionne.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libawful \u003ca target=\"_blank\" href=\"https://travis-ci.org/ldionne/libawful\"\u003e![Travis status][badge.Travis]\u003c/a\u003e\n\n\u003e A collection of awful archetypes for testing generic code\n\n## Overview\nWhen writing a generic library, one often needs to test generic components with\ntypes having infrequent characteristics. This is to make sure that a generic\ncomponent is not assuming more about its inputs than it should. __libawful__\nis a collection of types with unusual properties that can be used to check for\ncorner cases when implementing generic components. The project contains a single\nheader, `\u003cawful.hpp\u003e`, which defines all the archetypes.\n\n```c++\n#include \u003cawful.hpp\u003e\n#include \u003cutility\u003e\n\ntemplate \u003ctypename T, typename U\u003e\nstruct naive_pair {\n  T first;\n  U second;\n\n  naive_pair() = default;\n\n  template \u003ctypename Other, typename = decltype(std::declval\u003cOther\u003e().first),\n                            typename = decltype(std::declval\u003cOther\u003e().second)\u003e\n  naive_pair(Other\u0026\u0026 other)\n    : first(std::forward\u003cOther\u003e(other).first),\n      second(std::forward\u003cOther\u003e(other).second)\n  { }\n};\n\nint main() {\n  naive_pair\u003cawful::trapconstructible, int\u003e pair;\n  auto copy = pair; // ERROR: naive_pair tries to copy-construct its first\n                    //        member from a non-const reference to `pair.first`.\n}\n```\n\n## Compiler requirements\nThis is a C++14 library, and no effort whatsoever will be made to accommodate\nnonconforming compilers.\n\n\n\u003c!-- Links --\u003e\n[badge.Travis]: https://travis-ci.org/ldionne/libawful.svg?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldionne%2Flibawful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldionne%2Flibawful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldionne%2Flibawful/lists"}