MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / global_initializer

Method global_initializer

include/curl_interface.h:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91 // Implementation of the singleton initializer
92 template<class T> curl_interface<T>::global_initializer::global_initializer(const long flag) {
93 const CURLcode code = curl_global_init(flag);
94 if (code != CURLE_OK) {
95 throw curl_easy_exception(code,__FUNCTION__);
96 }
97 }
98
99 // Implementation of the singleton destructor
100 template<class T> curl_interface<T>::global_initializer::~global_initializer() {

Callers

nothing calls this directly

Calls 1

curl_easy_exceptionClass · 0.85

Tested by

no test coverage detected