compilation in C++11

This commit is contained in:
Zeno Rogue 2019-08-19 14:58:39 +02:00
parent 599783d4ab
commit fe266d3485
2 changed files with 6 additions and 5 deletions

View File

@ -919,7 +919,8 @@ void draw_s2xe(dqi_poly *p, dqi_poly *npoly) {
vector<point_data> pd;
for(int i=0; i<p->cnt; i++) {
hyperpoint h = p->V * glhr::gltopoint( (*p->tab)[p->offset+i]);
auto& next = pd.emplace_back();
pd.emplace_back();
auto& next = pd.back();
auto dp = product_decompose(h);
next.direction = dp.second;
next.z = dp.first;

View File

@ -566,7 +566,7 @@ EX namespace product {
hrmap *pmap;
geometry_information *pcgip;
template<class T> auto in_actual(const T& t) {
template<class T> auto in_actual(const T& t) -> decltype(t()) {
dynamicval<eGeometry> g(geometry, gProduct);
dynamicval<geometry_information*> gc(cgip, pcgip);
dynamicval<hrmap*> gu(currentmap, pmap);
@ -583,7 +583,7 @@ EX namespace product {
heptagon *getOrigin() override { return underlying_map->getOrigin(); }
template<class T> auto in_underlying(const T& t) {
template<class T> auto in_underlying(const T& t) -> decltype(t()) {
pcgip = cgip;
dynamicval<hrmap*> gpm(pmap, this);
dynamicval<eGeometry> g(geometry, underlying);
@ -593,7 +593,7 @@ EX namespace product {
}
cell *getCell(cell *u, int h) {
cell*& c = at[{u, h}];
cell*& c = at[make_pair(u, h)];
if(!c) { c = newCell(u->type+2, u->master); where[c] = {u, h}; }
return c;
}
@ -724,7 +724,7 @@ EX namespace product {
}
#if HDR
template<class T> auto in_underlying_geometry(const T& f) {
template<class T> auto in_underlying_geometry(const T& f) -> decltype(f()) {
if(!prod) return f();
dynamicval<eGeometry> g(geometry, underlying);
dynamicval<geometry_information*> gc(cgip, underlying_cgip);