Skip to content

Commit

Permalink
C++14 requires replacement for another operator delete
Browse files Browse the repository at this point in the history
  • Loading branch information
milasudril committed Sep 30, 2016
1 parent 4bb855a commit 1f4ce0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions code/new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ void operator delete[](void* buffer)
free(buffer);
}

void operator delete(void* buffer,size_t n)
{
free(buffer);
}

2 changes: 1 addition & 1 deletion code/run5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mkdir -p $dir_out
rm -rf $dir_out/$k-$l-$m
mkdir $dir_out/$k-$l-$m

__targets_rel/snowflake_simulate3 \
__targets_dbg/snowflake_simulate3 \
--shape=../crystal-prototypes/bullet.ice --deformation=L,gamma,1,0.25 \
--deformation=a,custom,xytab.txt --deformation=t,delta,0 \
--output-dir=$dir_out/$k-$l-$m --dump-stats=256 --N=4999 \
Expand Down
2 changes: 1 addition & 1 deletion code/thread.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ {
//@ "dependencies_extra":[],
//@ "dependencies_extra":[{"ref":"new.o","rel":"implementation"}],
//@ "targets":[
//@ {
//@ "dependencies":[
Expand Down

0 comments on commit 1f4ce0a

Please sign in to comment.