Fix CLANG compilation: folly/TokenBucket.h
authorDavid Callahan <dcallahan@fb.com>
Tue, 1 Nov 2016 19:56:08 +0000 (12:56 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 1 Nov 2016 20:08:25 +0000 (13:08 -0700)
commitf490576e697794b1a803fc280700a4364f5d3b24
tree7b3798d0c5c330fcc4ecd1684ef794a1dadc8d63
parentbc32ffeaae78373e5fe057a82e6d00edc2672737
Fix CLANG compilation: folly/TokenBucket.h

Summary:
In the next revision of clang, compilation generates multiple erroes of the form

   folly/TokenBucket.h:127:29: error: exception specification is not available until end of  class definition
         double nowInSeconds = defaultClockNow()) {

which are eliminated by reordering the method declaration for defaultClockNow()

Refer https://llvm.org/bugs/show_bug.cgi?id=30860

Reviewed By: philippu, yfeldblum

Differential Revision: D4107443

fbshipit-source-id: ce64f2ae7983e533c2fcb5cb043dbdd3da5c00f7
folly/TokenBucket.h