[C++] strongly typed enum c++

En curso Publicado May 20, 2016 Pagado a la entrega
En curso Pagado a la entrega

Two things:

a) Platform is embedded so I'm unable to use boost

b) I'm unable to use C++11 features

Desire:

Need an equivalent implementation to the one show here:

[url removed, login to view]

Ultimately what I'd like is to be able to specify the enum Color as follows:

MYLIB_ENUM(Color, unsigned int, Red = 1, Green, Blue, Yellow )

or

MYLIB_ENUM(Color, unsigned int, Red, Green, Blue, Yellow )

We could discuss types supported but unsigned int, int, unsigned short, short, unsigned char, char and perhaps float and double should be adequate

Programación en C++ Arquitectura de software

Nº del proyecto: #10555492

Sobre el proyecto

4 propuestas Proyecto remoto Activo May 21, 2016

Adjudicado a:

hectorenavarrou

Hi, I can do it, however I don't think this is possible: MYLIB_ENUM(Color, unsigned int, Red = 1, Green, Blue, Yellow ), assigning a value for a particular element breaks the grammar of C++. Maybe that same funcionalit Más

$150 USD en 1 día
(90 comentarios)
6.2

4 freelancers están ofertando un promedio de $232 por este trabajo

AwaisChaudhry

Hi there! I have read what you exactly need, however I would like to ask you a few questions. I would call myself a master of what I do, I do work smart and do not rest until I get the job done. Please feel free to pin Más

$264 USD en 3 días
(34 comentarios)
6.7