string -> std::string in common_rtc.h
Summary:
In its current form, common_rtc.h can only be included in a file where
```
using namespace std;
```
comes before the include
Closes https://github.com/caffe2/caffe2/pull/398
Differential Revision: D4943125
Pulled By: Yangqing
fbshipit-source-id: 3ef15c9353e6dd7326fc5f60322049c9f594ee6c
diff --git a/caffe2/cuda_rtc/common_rtc.h b/caffe2/cuda_rtc/common_rtc.h
index c2e877f..80c2ba2 100644
--- a/caffe2/cuda_rtc/common_rtc.h
+++ b/caffe2/cuda_rtc/common_rtc.h
@@ -1,6 +1,9 @@
#ifndef CAFFE2_CUDA_RTC_COMMON_RTC_H_
#define CAFFE2_CUDA_RTC_COMMON_RTC_H_
+#include <sstream>
+#include <string>
+
#include <cuda.h>
#include <nvrtc.h>
@@ -99,7 +102,7 @@
};
// TODO: this is in no way unique and is just a hack right now.
-inline string GetUniqueName() {
+inline std::string GetUniqueName() {
static constexpr int len = 20;
static const char alpha[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";