Summary:
This clashes with std::make_optional with -std=gnu++17 giving:
call of overloaded 'make_optional(std::__cxx11::basic_string<char>)' is ambiguous
Reviewed By: yfeldblum
Differential Revision:
D6780579
fbshipit-source-id:
fea8c76869e4d9b744fc3182379328a91879b1d2
if (pthread_getname_np(stdTidToPthreadId(id), buf.data(), buf.size()) != 0) {
return Optional<std::string>();
}
- return make_optional(std::string(buf.data()));
+ return folly::make_optional(std::string(buf.data()));
#else
return Optional<std::string>();
#endif