Skip to content

Commit

Permalink
simplify tempalte usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Nov 12, 2024
1 parent ba28a84 commit 21b8629
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@

namespace launchdarkly::config::shared::builders {

// namespace detail {
// template <typename T>
// struct is_client_sdk : std::false_type {};
//
// template <>
// struct is_client_sdk<config::shared::ClientSDK> : std::true_type {};
// } // namespace detail

/**
* Class used for building TLS options used within HttpProperties.
* @tparam SDK The SDK type to build options for. This affects the default
Expand Down Expand Up @@ -207,9 +199,8 @@ class HttpPropertiesBuilder {
*
* @param http_proxy HTTP proxy URL.
*/
template <
typename T = SDK,
std::enable_if_t<std::is_same_v<T, config::shared::ClientSDK>, int> = 0>
template <typename T = SDK,
std::enable_if_t<std::is_same_v<T, ClientSDK>, int> = 0>
HttpPropertiesBuilder& HttpProxy(std::string http_proxy);

[[nodiscard]] built::HttpProperties Build() const;
Expand Down

0 comments on commit 21b8629

Please sign in to comment.