Skip to content

NOEXCEPT #125

Description

@Xeverous

I don't get the use of NOEXCEPT macro

#ifndef __curlcpp__curl_config__
#define __curlcpp__curl_config__
#if defined(_MSC_VER)
#define NOEXCEPT
#include <ciso646>
#else
#define NOEXCEPT noexcept
#endif
#endif /* defined(__curlcpp__curl_config__) */

  • noexcept is a mandatory language feature and a conforming C++11 compiler must support it
  • <ciso646> has been removed in C++20, so a conforming implementation may actually fail to build
  • The __curlcpp__curl_config__ is technically undefined behavior (any names containing __, especially the ones starting with double underscore or an underscore + uppercase letter are reserved for the implementation) - this is obviously very unlikely to cause problems, but mentioning this in case you care for maximum conformance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions