diff --git a/caffe2/contrib/shm_mutex/shm_mutex.h b/caffe2/contrib/shm_mutex/shm_mutex.h index f2dc4ff97e8..8f0293caf5f 100644 --- a/caffe2/contrib/shm_mutex/shm_mutex.h +++ b/caffe2/contrib/shm_mutex/shm_mutex.h @@ -58,7 +58,7 @@ class ShmProcessMutexCheck { template struct shm_traits; -using ShmBaseHeader = struct { +struct ShmBaseHeader { std::atomic isInitialized; std::atomic countMapped; std::atomic owner; diff --git a/caffe2/image/image_input_op.h b/caffe2/image/image_input_op.h index 5d72898bfc6..d1c27e0845a 100644 --- a/caffe2/image/image_input_op.h +++ b/caffe2/image/image_input_op.h @@ -62,7 +62,7 @@ class ImageInputOp final : public PrefetchOperator { bool CopyPrefetched() override; private: - using BoundingBox = struct { + struct BoundingBox { bool valid; int ymin; int xmin; @@ -73,7 +73,7 @@ class ImageInputOp final : public PrefetchOperator { // Structure to store per-image information // This can be modified by the DecodeAnd* so needs // to be privatized per launch. - using PerImageArg = struct { BoundingBox bounding_params; }; + struct PerImageArg { BoundingBox bounding_params; }; bool GetImageAndLabelAndInfoFromDBValue( const string& value,