simon-git: spigot (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Tue Apr 4 21:32:16 BST 2017


TL;DR:
  66b4e74 Support hypot() with any number of arguments.

Repository:     https://git.tartarus.org/simon/spigot.git
On the web:     https://git.tartarus.org/?p=simon/spigot.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2017-04-04 21:32:16

commit 66b4e7479a70ed69e5d1b6f6f7fc78d15ed38fdf
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=66b4e7479a70ed69e5d1b6f6f7fc78d15ed38fdf;hp=1573a63a3027af604aeaecaf7857dead1ab5246c
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Apr 4 21:27:29 2017 +0100

    Support hypot() with any number of arguments.
    
    I read today that C++17 has introduced a 3-argument hypot. That seems
    not unreasonable, but with all the modern C++ variadic-template stuff,
    one is inclined to wonder why they stopped at three and didn't simply
    extend hypot to any number of arguments :-) and so I've done that for
    spigot, because in spigot there's no real reason not to.

 expr.cpp    |  2 +-
 funcs.h     |  2 +-
 manpage.but |  5 +++--
 manual.but  |  4 ++++
 sqrt.cpp    | 14 +++++++++++---
 test.sh     |  3 +++
 6 files changed, 23 insertions(+), 7 deletions(-)



More information about the tartarus-commits mailing list