mirror of
https://github.com/vgough/encfs.git
synced 2024-11-26 01:43:39 +01:00
5f0806c5cc
git-vendor-name: easylogging git-vendor-dir: vendor/github.com/muflihun/easyloggingpp git-vendor-repository: https://github.com/muflihun/easyloggingpp git-vendor-ref: master
28 lines
479 B
C++
28 lines
479 B
C++
//
|
|
// This file is part of Easylogging++ samples
|
|
// Demonstration of STL array (std::array) logging, this requires ELPP_LOG_STD_ARRAY macro (recommended to define it in Makefile)
|
|
//
|
|
// Revision 1.1
|
|
// @author mkhan3189
|
|
//
|
|
|
|
#define ELPP_LOG_STD_ARRAY
|
|
#include "easylogging++.h"
|
|
#include <array>
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
int main (void) {
|
|
|
|
std::array<int, 5> arr;
|
|
arr[0] = 1;
|
|
arr[1] = 2;
|
|
arr[2] = 3;
|
|
arr[3] = 4;
|
|
arr[4] = 5;
|
|
|
|
LOG(INFO) << arr;
|
|
|
|
return 0;
|
|
}
|