[mlpack-git] [mlpack/mlpack] use constexpr to replace static const (#612)

stereomatchingkiss notifications at github.com
Tue Apr 12 16:03:06 EDT 2016


I prefer constexpr because I hope the variables can be initialize at compile time, as [this post](http://stackoverflow.com/questions/13346879/const-vs-constexpr-on-variables) stated, but I may wrong, the compilar may not do what I think it should.

ps : on vc2015, static const double and constexpr, both of them can evaluate at compile time

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/612#issuecomment-209080951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160412/67f368a7/attachment.html>


More information about the mlpack-git mailing list