DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

Error in test3DImage3DView and test3DImageView (on ubuntu) #793

Closed kerautret closed 10 years ago

kerautret commented 10 years ago

I got an error when trying it on ubuntu: (also the same for ./tests/io/viewers/test3DImage3DView setMouseBindingDescription(int state,...) is deprecated. Use the modifier/button equivalent New Block [Testing Viewer with display of 3D Image ]

Abandon (core dumped)


With c++ : c++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3

copyme commented 10 years ago

@kerautret I have same error on openSUSE 13.1 gcc 4.8.1 OK. I see where the problem is. Functor is passed as temporary, rvalue and this occurs assertion from ConstAlias thus its move constructor prevents this situation. A quick fix it will be to create an instance of functor before passing it.

dcoeurjo commented 10 years ago

@kerautret, have you tried @copyme's fix ? Can I close this issue ?

kerautret commented 10 years ago

Not yet checked but I will do next week, (it is on my fix machine)

kerautret commented 10 years ago

I think that it was ok, but not close it, I will check again