Advertisement
illwieckz

crunch macos noexcept

Feb 10th, 2023 (edited)
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. ```
  2. clang --version
  3. Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  4. Target: x86_64-apple-darwin18.7.0
  5. Thread model: posix
  6. InstalledDir: /Library/Developer/CommandLineTools/usr/bin
  7. ```
  8.  
  9. ```
  10. diff --git a/crnlib/crn_threading_pthreads.h b/crnlib/crn_threading_pthreads.h
  11. index 50f3fb0..a2d7f1f 100644
  12. --- a/crnlib/crn_threading_pthreads.h
  13. +++ b/crnlib/crn_threading_pthreads.h
  14. @@ -174,7 +174,7 @@ class task_pool {
  15. class executable_task {
  16. public:
  17. virtual void execute_task(uint64 data, void* pData_ptr) = 0;
  18. - virtual ~executable_task( void ) = default;
  19. + virtual ~executable_task( void ) noexcept = default;
  20. };
  21.  
  22. // It's the caller's responsibility to delete pObj within the execute_task() method, if needed!
  23. @@ -250,7 +250,7 @@ class object_task : public task_pool::executable_task {
  24. m_flags(flags) {
  25. CRNLIB_ASSERT(pObject && pMethod);
  26. }
  27. - virtual ~object_task( void ) = default;
  28. + virtual ~object_task( void ) noexcept = default;
  29.  
  30. void init(T* pObject, object_method_ptr pMethod, uint flags = cObjectTaskFlagDefault) {
  31. CRNLIB_ASSERT(pObject && pMethod);
  32. ```
  33.  
  34. ```
  35. crunch/crnlib/crn_threading_pthreads.h:177:37: error: expected ';' at end of
  36. declaration list
  37. virtual ~executable_task( void ) noexcept = default;
  38. ^
  39. ;
  40. crunch/crnlib/crn_threading_pthreads.h:253:31: error: expected ';' at end of
  41. declaration list
  42. virtual ~object_task( void ) noexcept = default;
  43. ^
  44. ;
  45. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement