つくりはじめてからだいぶ時間が経ってしまったんですが、ぐだぐだになってきたので、暫定版って事で。 #include <iostream> #include <string> #include <boost/lexical_cast.hpp> #include <boost/lambda/lambda.hpp> #include "switch_case.hpp" namespace sc = switch_case; std::string check(int n){ return sc::switch_(n%2==0) |=sc::case_(true , sc::var(std::string("偶数"))) |=sc::case_(false, sc::var(std::string("奇数"))); } void fizz_buzz(int n){ using boost::lam