class Boost < Formula desc "Collection of portable C++ source libraries" homepage "https://www.boost.org/" url "https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2" mirror "https://dl.bintray.com/homebrew/mirror/boost_1_75_0.tar.bz2" sha256 "953db31e016db7bb207f11432bef7df100516eeb746843fa0486a222e3fd49cb" license "BSL-1.0" revision 2 head "https://github.com/boostorg/boost.git" livecheck do url "https://www.boost.org/feed/downloads.rss" regex(/>Version v?(\d+(?:\.\d+)+) #include #include #include using namespace boost::algorithm; using namespace std; int main() { string str("a,b"); vector strVec; split(strVec, str, is_any_of(",")); assert(strVec.size()==2); assert(strVec[0]=="a"); assert(strVec[1]=="b"); return 0; } EOS system ENV.cxx, "test.cpp", "-std=c++14", "-stdlib=libc++", "-o", "test" system "./test" end end