Menu

#3 Compilation error when using g++, vector types, BOUNDARY_CONSTANT, and scalar constat.

0.8.0
closed
None
2017-01-01
2013-07-23
No

The following examples can be compiled by clang++ since the scalar '1' is automatically propagated to uchar4, however, this is not the case when compiling with g++:

BoundaryCondition<uchar4> BcInConst2(IN, size_x, size_y, BOUNDARY_CONSTANT, '1');</uchar4>

Discussion

  • Richard Membarth

    • status: open --> closed
    • assigned_to: Richard Membarth
     
  • Richard Membarth

    This works in recent g++ versions (tested 5.4.0 and 6.2.1).

    New syntax:

    BoundaryCondition<uchar4> bound(in, dom, Boundary::CONSTANT, '1');
    
     

Log in to post a comment.

MongoDB Logo MongoDB