GithubHelp home page GithubHelp logo

apolukhin / type_index Goto Github PK

View Code? Open in Web Editor NEW
19.0 6.0 57.0 855 KB

Runtime/Compile time copyable type info. Moved to the Boost. Use Boost's repo instead of this:

Home Page: https://boost.org/libs/type_index

C++ 98.66% HTML 0.69% CMake 0.65%
boost typeindex cpp libraries

type_index's Introduction

type_index's People

Contributors

akumta avatar apolukhin avatar ashtum avatar bebuch avatar breakthrough avatar cdglove avatar danielae avatar danieljames avatar ecatmur avatar eldiener avatar ericwf avatar glenfe avatar grafikrobot avatar k-ballo avatar klemens-morgenstern avatar kojoley avatar lastique avatar marcelraad avatar mike-devel avatar norbertwenzel avatar ontoquad avatar pdimov avatar sdarwin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

type_index's Issues

Segfaults in demandler

void testing_cxx11() {
    using boost::spirit::qi::uint_parser;
    using boost::spirit::qi::char_;
    using boost::typeindex::type_id;

    uint_parser<unsigned short, 10, 2, 2> u2_;

    const auto print_input = [](auto&& v) {
        std::cerr << "typeid(v) = " << type_id<decltype(v)>() << '\n';
    };

    auto parser = ((char_('+')|char_('-')) >> u2_ >> ':' >> u2_)[ 
        print_input
    ];
    
    std::cerr << "typeid(parser) = " << type_id<decltype(parser)>() << '\n';
    
    const char data[] = "-11:30";
    const char* first = data;
    const char* const end = data + sizeof(data);
    const bool success = boost::spirit::qi::parse(first, end, parser);

    assert(success && first == end);
}

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.