This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Commit 84eaca2
Add a copy constructor to InvalidSass exception
The copy constructor transfers the ownership of `owned_src` from `rhs` to `lhs`.
Otherwise, `owned_src` may be destroyed too early and more than once.
In the libsass codebase, this copy can only happen on `throw`.
Modern compilers elide such copies. In our CI, only VS 2013 does not.1 parent 5801404 commit 84eaca2
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
40 | 51 | | |
41 | 52 | | |
42 | 53 | | |
| |||
0 commit comments