 #endif
 #define SAFE_VECTOR_DECL(name, allocator, size) \
     FloatVector name((allocator), (size)); \
-    ncvAssertReturn(name##.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC);
+    ncvAssertReturn(name.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC);
 
     // matrix elements
     SAFE_VECTOR_DECL(diffusivity_x,  gpu_mem_allocator, kSizeInPixelsAligned);

    InitTextures();

    //prepare image pyramid
    std::vector< shared_ptr<FloatVector> > img0_pyramid;
    std::vector< shared_ptr<FloatVector> > img1_pyramid;

    std::vector<Ncv32u> w_pyramid;
    std::vector<Ncv32u> h_pyramid;

    FloatVector* ptrUNew = &u_new;
    FloatVector* ptrVNew = &v_new;

    std::vector< Ptr<FloatVector> >::const_reverse_iterator img0Iter = img0_pyramid.rbegin();
    std::vector< Ptr<FloatVector> >::const_reverse_iterator img1Iter = img1_pyramid.rbegin();
    //outer loop
    //warping fixed point iteration
    while(!w_pyramid.empty())
