Commit b8d47cc5 authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

workaround

Attempt to get rid of undefined reference error for static const class
variable on gcc compiler
parent d3cfc9a1
......@@ -53,8 +53,13 @@ namespace INMOST
{
Tag t = CreateTag("TEMP_SYNC_MARKER",DATA_BULK,mask,mask,1);
//workaround for old gcc compiler
const Element::Status SGhost = Element::Ghost;
const Element::Status SAny = Element::Any;
Element::Status Expr = (Element::Shared | ((op != SYNC_BIT_NEW) ? SGhost : SAny));
for(Mesh::iteratorElement it = BeginElement(mask); it != EndElement(); ++it)
if( it->GetMarker(marker) && (it->GetStatus() & (Element::Shared | (op != SYNC_BIT_NEW ? Element::Ghost :Element::Any))) )
if( it->GetMarker(marker) && (it->GetStatus() & Expr) )
it->Bulk(t) = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment