mirror of
https://github.com/boostorg/contract.git
synced 2026-02-26 16:42:19 +00:00
tested access on msvc, gcc, clang, and wave
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
|
||||
// Copyright (C) 2008-2012 Lorenzo Caminiti
|
||||
// Distributed under the Boost Software License, Version 1.0
|
||||
// (see accompanying file LICENSE_1_0.txt or a copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
// Home at http://sourceforge.net/projects/contractpp
|
||||
|
||||
//[n1962_sum
|
||||
// File: sum.cpp
|
||||
#include "sum.hpp"
|
||||
|
||||
int CONTRACT_FREE_BODY(sum) ( int count, int* array ) {
|
||||
int total = 0;
|
||||
for(int i = 0; i < count; ++i) total += array[i];
|
||||
return total;
|
||||
}
|
||||
//]
|
||||
|
||||
Reference in New Issue
Block a user