Merge pull request #2200 from akortunov/warnfix
Replace boost GCD by the homebrew implementationpull/541/head
commit
e7bf89d3d5
@ -0,0 +1,13 @@
|
||||
#ifndef MISC_GCD_H
|
||||
#define MISC_GCD_H
|
||||
|
||||
namespace Misc
|
||||
{
|
||||
// TODO: replace to the std::gcd() when the C++17 will be available.
|
||||
int gcd(int a, int b)
|
||||
{
|
||||
return b == 0 ? a : gcd(b, a % b);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue