Skip to content

Commit 29644f6

Browse files
committed
add inline to operator<< for kernel_parts
1 parent 95f40da commit 29644f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stan/math/opencl/kernel_generator/operation_cl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct kernel_parts {
6161
args + other.args};
6262
}
6363

64-
kernel_parts operator+=(const kernel_parts& other) {
64+
kernel_parts& operator+=(const kernel_parts& other) {
6565
includes += other.includes;
6666
declarations += other.declarations;
6767
initialization += other.initialization;
@@ -75,7 +75,7 @@ struct kernel_parts {
7575
}
7676
};
7777

78-
std::ostream& operator<<(std::ostream& os, kernel_parts& parts) {
78+
inline std::ostream& operator<<(std::ostream& os, kernel_parts& parts) {
7979
os << "args:" << std::endl;
8080
os << parts.args.substr(0, parts.args.size() - 2) << std::endl;
8181
os << "Decl:" << std::endl;

0 commit comments

Comments
 (0)