Git Product home page Git Product logo

Comments (1)

jbmouret avatar jbmouret commented on July 19, 2024

Bonjour,

merci pour les corrections. La nouvelle macro SFERES_CONST devrait gérer le cas du changement static constexpr / static const automatiquement. Pour le SFERES_ARRAY, c’est une erreur de mon ‘search/replace’, je vais corriger.

Merci et bonne journée,
— Jean-Baptiste Mouret
http://pages.isir.upmc.fr/~mouret/

On May 8, 2014, at 14:44, Matthieu Zimmer [email protected] wrote:

If you're interested to migrate to c++11, I made commands to do it quickly.

constexpr

find sferes2 -type f -name
'.hpp' | xargs sed -i 's/static[ ]+const[ ]+((\w[ :])+=)/static constexpr \1/g' $1

find sferes2 -type f -name
'.cpp' | xargs sed -i 's/static[ ]+const[ ]+((\w[ :])+=)/static constexpr \1/g' $1
#be careful to got space and tabulation inside [ ]

is_nan

find sferes2 -type f -name
'*.hpp' | xargs sed -i 's/([^:])isnan/\1std::isnan/g' $1

find sferes2 -type f -name
'*.cpp' | xargs sed -i 's/([^:])isnan/\1std::isnan/g' $1
I'm not sure the 2 first are necessary since you commit SFERES_CONST.

Last point, in the new macro SFERES_ARRAY, you should use directly "static const" instead of SFERES_CONST (which means "static constexpr" in c++11) since it is a function.

It's works well on my code.


Reply to this email directly or view it on GitHub.

from sferes2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.