mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Offload
This commit is contained in:
parent
d03ce5c2a4
commit
4450b1993a
@ -159,8 +159,8 @@ public:\
|
|||||||
undefname = -1\
|
undefname = -1\
|
||||||
};\
|
};\
|
||||||
public:\
|
public:\
|
||||||
name(void): value_(undefname) {};\
|
accelerator name(void) : value_(undefname) {}; \
|
||||||
name(int value): value_(value) {};\
|
accelerator name(int value): value_(value) {}; \
|
||||||
template <typename T>\
|
template <typename T>\
|
||||||
static inline void write(Grid::Writer<T> &WR,const std::string &s, const name &obj)\
|
static inline void write(Grid::Writer<T> &WR,const std::string &s, const name &obj)\
|
||||||
{\
|
{\
|
||||||
@ -180,7 +180,7 @@ public:\
|
|||||||
GRID_MACRO_EVAL(GRID_MACRO_MAP(GRID_MACRO_ENUMTEST,__VA_ARGS__))\
|
GRID_MACRO_EVAL(GRID_MACRO_MAP(GRID_MACRO_ENUMTEST,__VA_ARGS__))\
|
||||||
else {obj = name::undefname;}\
|
else {obj = name::undefname;}\
|
||||||
}\
|
}\
|
||||||
inline operator int(void) const\
|
accelerator_inline operator int(void) const\
|
||||||
{\
|
{\
|
||||||
return value_;\
|
return value_;\
|
||||||
}\
|
}\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user