missing typename

This commit is contained in:
greg
2019-04-07 09:52:11 -04:00
parent cf9c514b1b
commit 94b263b13f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -137,5 +137,5 @@ int main()
checksum += ++map[static_cast<int>(rng())];
}
}
printf("%d\n", checksum);
printf("%zu\n", checksum);
}
+3 -3
View File
@@ -4625,9 +4625,9 @@ class Lockable : public Mutex, public LockableBase<Mutex>
{
public:
using Base = LockableBase<Mutex>;
using SharedLock = Base::ScopedLock;
using UniqueLock = Base::ScopedLock;
using UpgradeToUnique = Base::DoNothing; // we already have unique ownership
using SharedLock = typename Base::ScopedLock;
using UniqueLock = typename Base::ScopedLock;
using UpgradeToUnique = typename Base::DoNothing; // we already have unique ownership
};
#if defined(BOOST_THREAD_SHARED_MUTEX_HPP) && defined(BOOST_THREAD_LOCK_TYPES_HPP)