Yuxing Yao created ORC-34:
-----------------------------

             Summary: Can not compile on windows 10 and VS2015
                 Key: ORC-34
                 URL: https://issues.apache.org/jira/browse/ORC-34
             Project: Orc
          Issue Type: Bug
          Components: build
    Affects Versions: 1.0.0
            Reporter: Yuxing Yao


With Cmake 3.4.0 RC2/VS2015/windows SDK 10
I met a problem while build protobuf in the project which caused by some 

code in protobuf/config.h generated by cmake:

```
  /* the location of <unordered_map> or <hash_map> */
  #define HASH_MAP_H <unordered_map>

  /* the namespace of hash_map/hash_set */
  #define HASH_NAMESPACE std
```

but there's another piece of code in hash.h trying to inherit std::hash_map :
```
#include HASH_MAP_H
...
template <typename Key, typename Data,
          typename HashFcn = hash<Key>,
          typename EqualKey = int >
class hash_map : public HASH_NAMESPACE::hash_map<
    Key, Data, HashFcn> {
 public:
  hash_map(int = 0) {}
};
```
std::unordered_map is imported but requires std::hash_map. Definitely can not 
compile.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to