float-constexpr.diff 1.0 KB

12345678910111213141516171819202122232425
  1. diff -urN a/src/Arguments.h b/src/Arguments.h
  2. --- a/src/Arguments.h 2017-02-25 20:00:52.071294580 +0100
  3. +++ b/src/Arguments.h 2017-02-25 20:02:45.312061439 +0100
  4. @@ -100,7 +100,7 @@
  5. static const VERBOSITY Default_Verbosity = NORMAL ;
  6. static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats
  7. static const unsigned int Max_Algorithm = 3 ;
  8. - static const float Default_Goal = 100.0 ;
  9. + static constexpr float Default_Goal = 100.0 ;
  10. static const DEBUGCOMMAND Default_DebugCommand = NONE ;
  11. static const bool Default_Check = false ;
  12. static const unsigned int Default_DebugLevel = 0 ;
  13. diff -urN a/src/ProgressOutput.h b/src/ProgressOutput.h
  14. --- a/src/ProgressOutput.h 2017-02-25 20:00:52.071294580 +0100
  15. +++ b/src/ProgressOutput.h 2017-02-25 20:03:13.528919155 +0100
  16. @@ -64,7 +64,7 @@
  17. **/
  18. void done (float rate, float avgweight = NoAvgWeight) const ;
  19. - static const float NoAvgWeight = -1.0 ;
  20. + static constexpr float NoAvgWeight = -1.0 ;
  21. protected:
  22. std::string vcompose (const char *msgfmt, va_list ap) const ;