PuzzleD

D Interface to libpuzzle
git clone git://xatko.vsos.ethz.ch/PuzzleD.git
Log | Files | Refs

commit 07530359788490c7ef9f4548c1ad9a8385ff5f3e
parent 6fdaa4e5bbcac37a43715b404ec9c6edb0092111
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Thu, 27 Aug 2015 01:17:45 +0200

Disable default constructors.

Diffstat:
puzzle.d | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/puzzle.d b/puzzle.d @@ -118,6 +118,7 @@ struct Puzzle{ struct DVec{ PuzzleDvec vec; PuzzleContext *ctx; + @disable this(); this(PuzzleContext *ctx) in{ assert(ctx.valid(), "Context invalid"); @@ -149,6 +150,7 @@ struct DVec{ struct CVec{ PuzzleCvec vec; PuzzleContext *ctx; + @disable this(); this(ref CVec_Compressed c) in{ assert(ctx.valid(), "Context invalid"); @@ -185,6 +187,7 @@ struct CVec{ struct CVec_Compressed{ PuzzleCompressedCvec vec; PuzzleContext *ctx; + @disable this(); this(ref CVec c){ this(c.ctx); puzzle_compress_cvec(ctx, &vec, &c.vec);