mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Example of templates.
[SVN r15173]
This commit is contained in:
19
examples/template_use/sub/simple.cpp
Normal file
19
examples/template_use/sub/simple.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
Copyright (C) 2002, Rene Rivera. Permission to copy, use, modify, sell and
|
||||
distribute this software is granted provided this copyright notice appears in
|
||||
all copies. This software is provided "as is" without express or implied
|
||||
warranty, and with no claim as to its suitability for any purpose.
|
||||
*/
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include "simple.h"
|
||||
|
||||
int main(int /* argc */, char ** /* argv */)
|
||||
{
|
||||
for (int i = 0; i < 16; ++i)
|
||||
{
|
||||
std::printf("%d * 2 = %d\n",i,lib_call(i));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user