[pdal] Re: dimension_types branch merge
Howard Butler
hobu.inc at gmail.com
Wed Dec 21 12:49:17 EST 2011
I think I have everything cured. Please take a look at the commits from this morning on github if you want a synopsis.
I checked the compilation on msvc10 too. lots of warnings that are my fault. Will get them later this afternoon.
Howard
On Dec 21, 2011, at 11:48 AM, Michael Gerlek wrote:
> (I'm trying to get a wifi connection to look into this now.)
>
> .mpg
>
> On Dec 21, 2011, at 9:53 AM, Howard Butler <hobu.inc at gmail.com> wrote:
>
>>
>> On Dec 21, 2011, at 10:07 AM, Howard Butler wrote:
>>>
>>>> [ 1%] Building CXX object src/CMakeFiles/pdal.dir/plang/AstUtils.cpp.o
>>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp: In static member function 'static pdal::plang::DataType pdal::plang::AstUtils::inferType(pdal::plang::variant_t)':
>>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:62: error: no matching function for call to 'apply_visitor(pdal::plang::AstUtils::inferType(pdal::plang::variant_t)::my_visitor, pdal::plang::variant_t&)'
>>
>> Weirdly, this compiles with the following warnings on clang:
>>
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:62:12: warning: template argument uses local type 'pdal::plang::AstUtils::my_visitor' [-Wlocal-type-template-args]
>>> return ::boost::apply_visitor(my_visitor(), value);
>>> ^~
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:367:13: warning: enumeration values 'NodeType_VariableUse', 'NodeType_VariableDef', and 'NodeType_Program' not handled in
>>> switch [-Wswitch-enum]
>>> switch (nodetype)
>>> ^
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:163:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
>>> case NodeType_Equal: dst = left == right; break;
>>> ~~~~ ^ ~~~~~
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:270:32: note: in instantiation of function template specialization 'pdal::plang::do_equality<float>' requested here
>>> case DataType_Float32: do_equality<float>(leftValue, rightValue, dstValue, nodetype); break;
>>> ^
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:164:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
>>> case NodeType_NotEqual: dst = left != right; break;
>>> ~~~~ ^ ~~~~~
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:163:41: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
>>> case NodeType_Equal: dst = left == right; break;
>>> ~~~~ ^ ~~~~~
>>> /Users/hobu/dev/git/pdal/src/plang/AstUtils.cpp:271:32: note: in instantiation of function template specialization 'pdal::plang::do_equality<double>' requested here
>>> case DataType_Float64: do_equality<double>(leftValue, rightValue, dstValue, nodetype); break;
>>>
>>
>>
>> Howard_______________________________________________
>> pdal mailing list
>> pdal at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/pdal
More information about the pdal
mailing list