removed warn failures on compile

This commit is contained in:
Stephen M. McQuay 2012-05-05 14:54:38 -06:00
parent ae67c0cb26
commit 226042e61f
3 changed files with 9 additions and 4 deletions

View File

@ -2,8 +2,10 @@
#include <string> #include <string>
#include <iostream> #include <iostream>
using namespace std;
const std::vector<std::string> mcquays = {
const vector<string> mcquays = {
"stephen", "stephen",
"michael", "michael",
"bryan", "bryan",
@ -17,9 +19,10 @@ int func() {
int main() { int main() {
auto i = 5; auto i = 5;
auto j = func(); auto j = func();
auto s = std::string{"hello world"}; auto s = string{"hello world"};
cout << i << " " << j << " " << s << endl;
for(auto it = mcquays.begin(); for(auto it = mcquays.begin();
it != mcquays.end(); it++) { it != mcquays.end(); it++) {
std::cout << *it << std::endl; cout << *it << endl;
} }
} }

View File

@ -1,4 +1,5 @@
#include <string> #include <string>
#include <iostream>
using namespace std; using namespace std;
struct Point { struct Point {
@ -15,5 +16,6 @@ int main() {
int x = int(42); int x = int(42);
string s2 = "hello"; string s2 = "hello";
int y = 42; int y = 42;
cout << x << " " << y << " " << endl;
return 0; return 0;
} }

View File

@ -17,5 +17,5 @@ int main() {
{"Freddie Mercury", {100, 102, 103}}, {"Freddie Mercury", {100, 102, 103}},
{"Matt Bellamy", {100, 104, 105}}, {"Matt Bellamy", {100, 104, 105}},
}; };
return 0; return x;
} }