Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
FS
FS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 121
    • Issues 121
    • List
    • Boards
    • Labels
    • Milestones
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • flyspray
  • FSFS
  • Issues
  • #1550

Closed
Open
Opened Jan 09, 2015 by Martin Nolte@martin.nolte
  • Report abuse
  • New issue
Report abuse New issue

#1550 Make Geometry default constructible

Metadata

Property Value
Reported by Martin Nolte (nolte@mathematik.uni-freiburg.de)
Reported at Jan 9, 2015 10:54
Type Feature Request
Version 2.3
Operating System Unspecified / All

Description

Geometries are now copy constructible and copy assignable objects. However, in some situations it, like storing geometries in a vector indexed by the index set, a default constructor would be extremely convenient.

As a geometry can always model the identity, there seems no design principle speaking against such default constructibility. Only the return value of "type()" needs to be implementation-defined.

Since nobody will use a default constructed geometry, I would even propose to specify undefined behavior for all methods. This way, implementations simply storing a pointer internally remain trivial.

Are there any reasons not to add this default constructor to the interface?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
feature
Assign labels
  • View project labels
Reference: flyspray/FS#1550