namespace opencv_test
{
-namespace
-{
+
+// types from anonymous namespace doesn't work well with templates
+inline namespace gapi_ocv_stateful_kernel_test_utils {
+
struct UserStruct
{
UserStruct() = default;
short _myShortVal;
float _myFloatVal;
};
-} // anonymous namespace
+
+} // namespace
} // opencv_test
#endif // OPENCV_GAPI_OCV_STATEFUL_KERNEL_TESTS_UTILS_HPP
EXPECT_EQ(V{}, vtest);
}
-namespace {
+// types from anonymous namespace doesn't work well with templates
+inline namespace gapi_array_tests {
struct MyTestStruct {
int i;
float f;
EXPECT_NE(test, mov.rref<I>()); // ref lost the data
}
-namespace {
+// types from anonymous namespace doesn't work well with templates
+inline namespace gapi_opaque_tests {
struct MyTestStruct {
int i;
float f;