Skip to content

Commit 8a40b50

Browse files
authored
Merge pull request #440 from jan-moravec/bugfix/fix-missing-delete-macro-in-lightweightsemaphore
Add Missing Delete Macro in lightweightsemaphore.h
2 parents c680721 + 2407287 commit 8a40b50

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lightweightsemaphore.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ extern "C" {
3636
#endif
3737
#endif
3838

39+
#ifndef MOODYCAMEL_DELETE_FUNCTION
40+
#if __cplusplus >= 201103L || _MSC_VER >= 1900
41+
#define MOODYCAMEL_DELETE_FUNCTION = delete
42+
#else
43+
#define MOODYCAMEL_DELETE_FUNCTION
44+
#endif
45+
#endif
46+
3947
namespace moodycamel
4048
{
4149
namespace details

0 commit comments

Comments
 (0)