Coder Social home page Coder Social logo

matthewacon / cx Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 3.0 402 KB

A header-only, stl/libc-independent, C++20 concepts, template meta-function and runtime utility library.

License: MIT License

CMake 2.83% C++ 97.14% C 0.03%
cpp20 cpp-concepts metaprogramming constexpr

cx's Introduction

CX Documentation

Dependencies

Building the docs

The build process will produce a static set of pages in docs/build/html/.

mdbook build docs/

cx's People

Contributors

matthewacon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cx's Issues

This library is mindblowing

Don't have any issues to file, just wanted to say thanks. Reading the code has exploded my brain -- this is super useful stuff as well!

Add a homogeneous tuple type

template<typename T, typename... TS>
struct HomogeneousTuple : Tuple<T, TS...> {
 static_assert((CX::IsSame<T, TS>::value && ...), "message here");
 /*...*/
};

Incorrect unsafe function pointer cast in CX::Lambda

Haven't seen this cause issues yet, but it is being reported by UBSAN and should be fixed nonetheless. Example case:

../fake-jni/CX/cx/lambda.h:51:4: runtime error: call to function void CX::Lambda<jvalue (JNIEnv_*, _jobject*, jvalue*), true>::copy<Baron::Interface::NativeInterface::getMethodID(_jclass*, char const*, char const*) const::$_0>(CX::Lambda<jvalue (JNIEnv_*, _jobject*, jvalue*), true>::Type, char**, Baron::Interface::NativeInterface::getMethodID(_jclass*, char const*, char const*) const::$_0*) through pointer to incorrect function type 'void (*)(CX::Lambda<jvalue (JNIEnv_ *, _jobject *, jvalue *), true>::Type, char **, char *)'
/home/matthew/Git/dukeify/baron/build/../fake-jni/CX/cx/lambda.h:136: note: void CX::Lambda<jvalue (JNIEnv_*, _jobject*, jvalue*), true>::copy<Baron::Interface::NativeInterface::getMethodID(_jclass*, char const*, char const*) const::$_0>(CX::Lambda<jvalue (JNIEnv_*, _jobject*, jvalue*), true>::Type, char**, Baron::Interface::NativeInterface::getMethodID(_jclass*, char const*, char const*) const::$_0*) defined here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.