{"comment":{"url":"https://api.github.com/repos/CoolProp/CoolProp/comments/10523768","html_url":"https://github.com/CoolProp/CoolProp/commit/48fe5b972f3b2b90b4f21d46f7fc166af8c506a1#commitcomment-10523768","id":10523768,"user":{"login":"ibell","id":1859947,"avatar_url":"https://avatars.githubusercontent.com/u/1859947?v=3","gravatar_id":"","url":"https://api.github.com/users/ibell","html_url":"https://github.com/ibell","followers_url":"https://api.github.com/users/ibell/followers","following_url":"https://api.github.com/users/ibell/following{/other_user}","gists_url":"https://api.github.com/users/ibell/gists{/gist_id}","starred_url":"https://api.github.com/users/ibell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibell/subscriptions","organizations_url":"https://api.github.com/users/ibell/orgs","repos_url":"https://api.github.com/users/ibell/repos","events_url":"https://api.github.com/users/ibell/events{/privacy}","received_events_url":"https://api.github.com/users/ibell/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"48fe5b972f3b2b90b4f21d46f7fc166af8c506a1","created_at":"2015-04-01T14:31:01Z","updated_at":"2015-04-01T14:31:01Z","body":"Nope, I left the master in a broken state when I went to sleep.  I'm fixing\nit right now, another 10 minutes and all should be well again.\n\nOn Wed, Apr 1, 2015 at 3:49 AM, JonWel <notifications@github.com> wrote:\n\n> It doesn't compile for me on Ubuntu 64 bit.\n>\n> To be sure not having any submodules issues, I deleted the previous\n> directory and downloaded all freshly:\n>\n> git clone https://github.com/CoolProp/CoolProp --recursivecd CoolProp\n> mkdir build && cd build\n> cmake .. -DCOOLPROP_64BIT_SHARED_LIBRARY=ON\n> cmake --build .\n>\n> And it gives this:\n>\n> [ 20%] Building CXX object CMakeFiles/CoolProp.dir/src/AbstractState.cpp.o\n> In file included from /home/johndoe/CoolProp/src/Backends/IF97/IF97Backend.h:6:0,\n>                  from /home/johndoe/CoolProp/src/AbstractState.cpp:17:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:316:5: error: braces around scalar initializer for type ‘double’\n>      };\n>      ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h: In function ‘double IF97::Region3Backwards::Region3_v_TP(char, double, double)’:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1517:83: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                      throw std::out_of_range::out_of_range(\"Unable to match region\");\n>                                                                                    ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1517:83: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h: In function ‘double IF97::Region3Backwards::DividingLine(IF97::Region3Backwards::DividingLineEnum, double)’:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1713:90: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                      throw std::out_of_range::out_of_range(\"Unable to match dividing line\");\n>                                                                                           ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1713:90: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h: In function ‘char IF97::Region3Backwards::BackwardsRegion3SubRegionDetermination(double, double)’:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1720:68: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                 throw std::out_of_range::out_of_range(\"Out of range\");\n>                                                                     ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1720:68: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h: In function ‘char IF97::Region3Backwards::BackwardsRegion3RegionDetermination(double, double)’:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1764:78: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                  throw std::out_of_range::out_of_range(\"pressure out of range\");\n>                                                                               ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1764:78: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h: In member function ‘double IF97::Region3::output(I97parameters, double, double)’:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1977:74: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                  throw std::out_of_range::out_of_range(\"bad key to output\");\n>                                                                           ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:1977:74: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h: In function ‘IF97::IF97REGIONS IF97::RegionDetermination_TP(double, double)’:\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2075:65: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>              throw std::out_of_range::out_of_range(\"Out of range\");\n>                                                                  ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2075:65: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2082:69: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                  throw std::out_of_range::out_of_range(\"Out of range\");\n>                                                                      ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2082:69: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2087:69: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                  throw std::out_of_range::out_of_range(\"Out of range\");\n>                                                                      ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2087:69: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2101:69: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>                  throw std::out_of_range::out_of_range(\"Out of range\");\n>                                                                      ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2101:69: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2111:65: error: cannot call constructor ‘std::out_of_range::out_of_range’ directly [-fpermissive]\n>              throw std::out_of_range::out_of_range(\"Out of range\");\n>                                                                  ^\n> /home/johndoe/CoolProp/externals/IF97/IF97.h:2111:65: note: for a function-style cast, remove the redundant ‘::out_of_range’\n> CMakeFiles/CoolProp.dir/build.make:195: recipe for target 'CMakeFiles/CoolProp.dir/src/AbstractState.cpp.o' failed\n> make[2]: *** [CMakeFiles/CoolProp.dir/src/AbstractState.cpp.o] Error 1\n> CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/CoolProp.dir/all' failed\n> make[1]: *** [CMakeFiles/CoolProp.dir/all] Error 2\n> Makefile:116: recipe for target 'all' failed\n> make: *** [all] Error 2\n>\n> I also tested to update submodules git submodule foreach git pull origin\n> master, it update some externals modules but the error remain the same.\n>\n> Did I miss anything?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/CoolProp/CoolProp/commit/48fe5b972f3b2b90b4f21d46f7fc166af8c506a1#commitcomment-10515765>\n> .\n>\n"}}