Skip to content

Instantly share code, notes, and snippets.

@mcs07
Created November 6, 2013 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcs07/7334872 to your computer and use it in GitHub Desktop.
Save mcs07/7334872 to your computer and use it in GitHub Desktop.
A patch for RDKit 2013.09.1 to compile with libc++ which is now the default in Mavericks.
diff --git a/Code/RDGeneral/Dict.h b/Code/RDGeneral/Dict.h
index 6d368a4..6f586a8 100644
--- a/Code/RDGeneral/Dict.h
+++ b/Code/RDGeneral/Dict.h
@@ -32,14 +32,12 @@
//!
class Dict {
public:
- typedef std::map<const std::string, boost::any> DataType;
+ typedef std::map<std::string, boost::any> DataType;
Dict(){
_data.clear();
};
- Dict(const Dict &other) {
- _data = other._data;
- };
+ Dict(const Dict &other) : _data(other._data) {};
Dict &operator=(const Dict &other) {
_data = other._data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment