Used boost's and_