@@ -51,14 +51,6 @@ __SYCL_EXPORT std::error_code make_error_code(sycl::errc E) noexcept;
5151__SYCL_EXPORT const std::error_category &sycl_category () noexcept ;
5252
5353namespace detail {
54- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
55- __SYCL_EXPORT const char *stringifyErrorCode (int32_t error);
56-
57- inline std::string codeToString (int32_t code) {
58- return std::to_string (code) + " (" + std::string (stringifyErrorCode (code)) +
59- " )" ;
60- }
61- #endif
6254
6355class __SYCL_EXPORT SYCLCategory : public std::error_category {
6456public:
@@ -82,34 +74,21 @@ class __SYCL_EXPORT exception : public virtual std::exception {
8274 virtual ~exception ();
8375
8476 exception (std::error_code Ec, const char *Msg)
85- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
86- : exception(Ec, nullptr , Msg) {}
87- #endif
88- ;
77+ : exception(Ec, nullptr , Msg) {};
8978
9079 exception (std::error_code Ec, const std::string &Msg)
9180 : exception(Ec, nullptr , Msg.c_str()) {}
9281
93- exception (std::error_code Ec)
94- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
95- : exception(Ec, nullptr , " " ) {}
96- #endif
97- ;
82+ exception (std::error_code Ec) : exception(Ec, nullptr , " " ) {};
9883
9984 exception (int EV, const std::error_category &ECat, const std::string &WhatArg)
10085 : exception(std::error_code(EV, ECat), nullptr , WhatArg.c_str()) {}
10186
10287 exception (int EV, const std::error_category &ECat, const char *WhatArg)
103- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
104- : exception(std::error_code(EV, ECat), nullptr , WhatArg) {}
105- #endif
106- ;
88+ : exception(std::error_code(EV, ECat), nullptr , WhatArg) {};
10789
10890 exception (int EV, const std::error_category &ECat)
109- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
110- : exception(std::error_code(EV, ECat), nullptr , " " ) {}
111- #endif
112- ;
91+ : exception(std::error_code(EV, ECat), nullptr , " " ) {};
11392
11493 // context.hpp depends on exception.hpp but we can't define these ctors in
11594 // exception.hpp while context is still an incomplete type.
@@ -140,17 +119,6 @@ class __SYCL_EXPORT exception : public virtual std::exception {
140119 std::error_code MErrC = make_error_code(sycl::errc::invalid);
141120
142121protected:
143- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
144- // base constructors used by SYCL 1.2.1 exception subclasses
145- exception (std::error_code Ec, const char *Msg, const int32_t PIErr)
146- : exception(Ec, std::string(Msg), PIErr) {}
147-
148- exception (std::error_code Ec, const std::string &Msg, const int32_t URErr)
149- : exception(Ec, nullptr , Msg + " " + detail::codeToString(URErr)) {
150- MErr = URErr;
151- }
152- #endif
153-
154122 // base constructor for all SYCL 2020 constructors
155123 // exception(context *, std::error_code, const std::string);
156124 exception (std::error_code Ec, std::shared_ptr<context> SharedPtrCtx,
0 commit comments