Project

General

Profile

Design #1511

Use C++14 constexpr

Added by John Abbott over 3 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Improving
Target version:
Start date:
14 Oct 2020
Due date:
% Done:

100%

Estimated time:
2.99 h
Spent time:

Description

Scott Meyers recommends using constexpr where (reasonably) possible.


Related issues

Related to CoCoALib - Design #1225: Move to C++14 (skipping C++11)In Progress2018-09-06

History

#1 Updated by John Abbott over 3 years ago

  • Related to Design #1225: Move to C++14 (skipping C++11) added

#2 Updated by John Abbott about 3 years ago

So far I have done the following files: (update list as files are done)
  • bool3.H
  • config.H
  • DivMask
  • DynamicBitset
  • MemPool
  • debug_new.C
  • [end of list]

#3 Updated by John Abbott about 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

#4 Updated by John Abbott about 3 years ago

  • % Done changed from 20 to 50

#5 Updated by John Abbott about 2 months ago

  • Assignee set to John Abbott

#6 Updated by John Abbott about 2 months ago

  • Status changed from In Progress to Feedback
  • % Done changed from 50 to 90

I think I have done all instances in src/AlgebraicCore and src/CoCoA-5. I suppose I'd better check examples & tests...

#7 Updated by John Abbott about 2 months ago

I have done the tests and examples. There were a few cases where I chose to leave just const rather than replace with constexpr... no terribly scientific reason for my choices.
All tests & examples compile and run fine.

#8 Updated by John Abbott about 1 month ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100
  • Estimated time set to 2.99 h

Also available in: Atom PDF