We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1926dbd commit 92b6fc9Copy full SHA for 92b6fc9
src/cmdstan/command.hpp
@@ -831,7 +831,7 @@ int command(int argc, const char *argv[]) {
831
//////////////////////////////////////////////////
832
833
stan::math::profile_map &profile_data = get_stan_profile_data();
834
- if (profile_data.begin() != profile_data.end()) {
+ if (profile_data.size() > 0) {
835
std::string profile_file_name
836
= get_arg_val<string_argument>(parser, "output", "profile_file");
837
std::fstream profile_stream(profile_file_name.c_str(), std::fstream::out);
0 commit comments