Merge pull request #15282 from andrey-golubev:rename_argkind_opaque
* G-API: rename ArgKind OPAQUE to GOPAQUE Rename ArgKind value to GOPAQUE to fix conflict in the user code when wingdi.h is included: it defines OPAQUE macro that (for some reason) is chosen instead of ArgKind value * Add compatibility with existing API * Renamed GOPAQUE to OPAQUE_VAL
This commit is contained in:
committed by
Alexander Alekhin
parent
183fc43a67
commit
bf0765fc7f
@@ -76,7 +76,7 @@ public:
|
||||
return util::unsafe_any_cast<typename std::remove_reference<T>::type>(value);
|
||||
}
|
||||
|
||||
detail::ArgKind kind = detail::ArgKind::OPAQUE;
|
||||
detail::ArgKind kind = detail::ArgKind::OPAQUE_VAL;
|
||||
|
||||
protected:
|
||||
util::any value;
|
||||
|
||||
@@ -26,7 +26,11 @@ namespace detail
|
||||
// a double dispatch
|
||||
enum class ArgKind: int
|
||||
{
|
||||
OPAQUE, // Unknown, generic, opaque-to-GAPI data type - STATIC
|
||||
OPAQUE_VAL, // Unknown, generic, opaque-to-GAPI data type - STATIC
|
||||
// Note: OPAQUE is sometimes defined in Win sys headers
|
||||
#if !defined(OPAQUE) && !defined(CV_DOXYGEN)
|
||||
OPAQUE = OPAQUE_VAL, // deprecated value used for compatibility, use OPAQUE_VAL instead
|
||||
#endif
|
||||
GOBJREF, // <internal> reference to object
|
||||
GMAT, // a cv::GMat
|
||||
GMATP, // a cv::GMatP
|
||||
@@ -41,7 +45,7 @@ namespace detail
|
||||
template<typename T> struct GTypeTraits;
|
||||
template<typename T> struct GTypeTraits
|
||||
{
|
||||
static constexpr const ArgKind kind = ArgKind::OPAQUE;
|
||||
static constexpr const ArgKind kind = ArgKind::OPAQUE_VAL;
|
||||
};
|
||||
template<> struct GTypeTraits<cv::GMat>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user