Remove misleading declaration-as-default that results in a deleted constructor, and...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 17 May 2018 16:26:18 +0000 (09:26 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 17 May 2018 16:30:31 +0000 (09:30 -0700)
PiperOrigin-RevId: 197003162

tensorflow/core/kernels/decode_proto_op.cc

index 35413ea..6d3dcc1 100644 (file)
@@ -516,8 +516,7 @@ class CountCollector {
 // the user requests it.
 class DenseCollector {
  public:
-  // Default constructor allows the collector to be a vector element.
-  DenseCollector() = default;
+  DenseCollector() = delete;
 
   // A DenseCollector applies to one field of a serialized message.
   // Note that default_value.dtype is the type of the output tensor.