Oslandia / SFCGAL

MOVED TO GITLAB: https://gitlab.com/sfcgal/SFCGAL. A wrapper around CGAL that intents to implement 2D and 3D operations on OGC standards models
https://sfcgal.org
Other
112 stars 54 forks source link

Fix vs2017 compile error with Geometry operator= not implement #196

Closed happydpc closed 5 years ago

mhugo commented 5 years ago

What if you set "= default" in the header ? Does it fix the compilation error ?

protected:
    Geometry();
    Geometry( const Geometry& ) = default;
    const Geometry& operator=( const Geometry& ) = default;
happydpc commented 5 years ago

What if you set "= default" in the header ? Does it fix the compilation error ?

protected:
    Geometry();
    Geometry( const Geometry& ) = default;
    const Geometry& operator=( const Geometry& ) = default;

No, still the same error.

mhugo commented 5 years ago

Fixed in https://github.com/Oslandia/SFCGAL/commit/e28f6908a7410005d068179264747bcde1877286 This is your proposition, with a change of return type as well.

Thanks !