On Oct 6, 2014, at 5:02 PM, Philippe de Rochambeau wrote:

> Here it is.


Thanks Philippe!  That helped...

The build error you have is fixed in our latest sources but unfortunately just 
barely didn't make it into the 7.24.2 release.  The fix is very simple and one 
you can make.  If you edit the src/librt/primitives/brep/brep.cpp file, add the 
word "const" on two lines.  Here's a before and after patch:

Index: src/librt/primitives/brep/brep.cpp
===================================================================
--- src/librt/primitives/brep/brep.cpp  (revision 58507)
+++ src/librt/primitives/brep/brep.cpp  (revision 58508)
@@ -537,12 +537,12 @@
        return *this;
     }
 
-    bool operator==(const brep_hit& h)
+    bool operator==(const brep_hit& h) const
     {
        return NEAR_ZERO(dist - h.dist, BREP_SAME_POINT_TOLERANCE);
     }
 
-    bool operator<(const brep_hit& h)
+    bool operator<(const brep_hit& h) const
     {
        return dist < h.dist;
     }

That should basically do the trick.

Cheers!
Sean


------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Users mailing list
brlcad-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to