X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2FString.h;h=80d3e232375aa9c91d6dadbd2187748ca6d0db5b;hp=fc552f11507b2bd7391929bcc37ff6bd90007f77;hb=e70058f47d312aaf194207ff6034089850750c1e;hpb=500f3598bb9e351b0aaf86a68c009ce8b815b979 diff --git a/folly/String.h b/folly/String.h index fc552f11..80d3e232 100644 --- a/folly/String.h +++ b/folly/String.h @@ -1,5 +1,5 @@ /* - * Copyright 2016 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,16 +20,10 @@ #include #include #include +#include #include #include -#ifdef FOLLY_HAVE_DEPRECATED_ASSOC -#ifdef _GLIBCXX_SYMVER -#include -#include -#endif -#endif - #include #include @@ -491,7 +485,8 @@ struct IsConvertible { template struct IsConvertible< T, - decltype(parseTo(std::declval(), std::declval()))> { + decltype(static_cast( + parseTo(std::declval(), std::declval())))> { enum { value = true }; }; @@ -644,12 +639,4 @@ using UTF8StringPiece = UTF8Range; } // namespace folly -// Hook into boost's type traits -namespace boost { -template -struct has_nothrow_constructor > : true_type { - enum { value = true }; -}; -} // namespace boost - #include