Get libc++ on ubuntu 14.04 working
The std::is_member_function_pointer<> template is broken on this version of the libc++ standard library for const member functions. To get ChaiScript to work with this, we had to work around the use of automatically generated std::function wrappers in many cases. This actually cleaned up the code in a few places and muddied it up in one.
This commit is contained in:
@@ -68,7 +68,9 @@ int main()
|
||||
std::vector<std::shared_ptr<std::thread> > threads;
|
||||
|
||||
// Ensure at least two, but say only 7 on an 8 core processor
|
||||
int num_threads = std::max(std::thread::hardware_concurrency() - 1, 2u);
|
||||
int num_threads = std::max(static_cast<int>(std::thread::hardware_concurrency()) - 1, 2);
|
||||
|
||||
std::cout << "Num threads: " << num_threads << '\n';
|
||||
|
||||
for (int i = 0; i < num_threads; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user