Skip to content

Commit f94fd01

Browse files
committed
add support for old compilers
1 parent 600e33d commit f94fd01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/mir/rcarray.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ struct mir_rcarray(T)
5252
{
5353
import std.traits;
5454

55-
enum cppSupport = preferCppLinkage!T;
55+
static if (__VERSION__ < 2082)
56+
enum cppSupport = false;
57+
else
58+
enum cppSupport = preferCppLinkage!T;
5659

5760
private struct Context
5861
{

0 commit comments

Comments
 (0)