Coder Social home page Coder Social logo

typestring's People

Contributors

irrequietus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar

typestring's Issues

typestring size

typestring::sval and return type of typestring::size are both unsigned int. While it seems std::size_t would be more suitable and consistent with other parts of the language.

Note that sizeof... (which is used to set the value of typestring::sval) is defined by the standard to be a value of type std::size_t:

The result of sizeof and sizeof... is a constant of type std::size_t. [ Note: std::size_t is defined in the standard header <cstddef> (18.2). —end note ]

Working Draft, N3337, 2012-01-16 (newest I have at hand),
5.3.3 Sizeof ([expr.sizeof]), point 6

However inclusion of <cstddef> would be needed as currently typestring.hh doesn't include anything at all.

Проблема со входом на гидру

Вышел с аккаунта пополнить счёт а обратно уже никак не могу зайти. Пишет неверный логин или пароль. При попытке восстановить пароль пишет"В этом аккаунте не примён PGP ключ. Что делать если я правильно всё ввожу?

Maby a nicer Front-Page Example

Thanks for this great class!!
(It took me a while to realize that it does exactly what I wanted!)

Please consider putting an example like this on the front-page:

#include "typestring.hh"

// wrapper to give any class T a fixed static name
template <typename T, typename NAME>
class MyClass : public T
{
public:
    
    using T::T;

    constexpr static const char *get_name() { return NAME::data(); }
};



#include <vector>
#include <iostream>

int main()
{
    MyClass<std::vector<int>, typestring_is("vec0")> vec0{0, 2, 4};
    MyClass<std::vector<int>, typestring_is("vec1")> vec1{1, 3, 5};
    auto &container = vec0;

    std::cout << container.get_name() << std::endl; // prints vec0
}

And consider mentioning typestring over 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.